摘要:
复健模拟赛 3.15 T1:爆搜,meet in the middle T2:期望,找性质,递推 T3:点分治,并查集 T4:计数,递推 总分:100+30+0+0 T1:打了个爆搜发现过不了,开始尝试奇怪的乱搞,比如把值域分治一下之类的,最后发现竟然可以meet in the middle,一共耗 阅读全文
摘要:
AVL: #include <bits/stdc++.h> using namespace std; struct Node { int key; int son[2], hei; } node[12345678]; int total; struct AVL { int root; void up 阅读全文
摘要:
1e12找原根板子 #include<bits/stdc++.h> #define ll long long using namespace std; ll n,prime[1000005],is_prime[1000005],cnt,qv[1000005],qn[1000005],top,g,Ph 阅读全文