#CF1342E 题意 给定一个$n \times n$的棋盘,要求放$n$个棋,使得所有格子都在攻击范围内,且恰好有$k$对互相攻击,求方案数对$998244353$取模的结果。两个棋互相攻击当且仅当它们在同一行或者同一列,且中间没有其他棋子。\(n \leq 200000\)。 题解 发现每个格 ...
分类:
其他好文 时间:
2020-09-17 16:41:27
阅读次数:
27
The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution ...
分类:
其他好文 时间:
2020-05-05 20:21:48
阅读次数:
56
题目:传送门 博一 博二 #include <bits/stdc++.h> #define LL long long #define ULL unsigned long long #define mem(i, j) memset(i, j, sizeof(i)) #define rep(i, j, ...
分类:
其他好文 时间:
2020-05-02 14:38:11
阅读次数:
99
The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution ...
分类:
其他好文 时间:
2020-04-21 23:40:06
阅读次数:
92
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral poste ...
分类:
其他好文 时间:
2020-04-05 00:52:42
阅读次数:
87
"题目传送门" 。 _______ 分析 我们可以把字符串中所有数加起来输出,那么到底怎么把一个字符变成一个数字呢。我们只需要减去字符$0$就可以了。 详细步骤 1. 定义字符串$s$并将其输入。 2. 我们可以将每一个字符减去字符$0$,然后将它们一次相加并输出。 ...
分类:
其他好文 时间:
2020-02-28 12:11:48
阅读次数:
58
题目如下: Tic-tac-toe is played by two players A and B on a 3 x 3 grid. Here are the rules of Tic-Tac-Toe: Players take turns placing characters into empt ...
此篇為之前筆記的總結練習Demo | Github練習的 html 內容已經預訂好,在 body 內的內容如下所示123456789101112131415161718192021222324252627282930313233 1 2 3 4 5 6 7 8 💩 9 10 11 12 13 14... ...
分类:
Web程序 时间:
2019-10-17 15:37:21
阅读次数:
91
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral poste ...
分类:
其他好文 时间:
2019-08-07 19:25:30
阅读次数:
99
Description The citizens of Bytetown, AB, could not stand that the candidates in the mayoral election campaign have been placing their electoral poste ...
分类:
其他好文 时间:
2019-08-06 10:40:19
阅读次数:
77