摘要:
https://vj.ti12z.cn/b02428b1bbcf4609f7b121c06ef01b09?v=1564291265 A. 思路当K为1时显然的和N的奇偶性有关,那么我们考虑一下K>1 K>1K>1的情况对于先手的Adrien来说,他对任意的N颗石子,他都可以将这N颗石子分成两段 阅读全文
posted @ 2019-07-31 23:24
Snow_in_winer
阅读(178)
评论(0)
推荐(0)
摘要:
#include using namespace std; const int N=200010; int sum,ans[N],base,now,n; int main() { int T; scanf("%d",&T); while (T--) { sum=0; scanf("%d",&n); for (int... 阅读全文
posted @ 2019-07-31 18:15
Snow_in_winer
阅读(142)
评论(0)
推荐(0)
摘要:
#include using namespace std; const int maxn=2000101; struct node { int son[30],flag,fail,ans; void clear() { memset(son,0,sizeof(son)); fail=flag=0; } } trie[maxn]; ... 阅读全文
posted @ 2019-07-31 10:09
Snow_in_winer
阅读(202)
评论(0)
推荐(0)