摘要:
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=1e5+10; const int mod=1e9+7; int cnt; int id1[18*N],id2[18*N]; struct n 阅读全文
摘要:
因为要求所有的状态,所以暴力超时 那么想想能否计算贡献。 我们对于每一个xi,xi+1,他们对于每一个fi的状态都有不同的贡献,因此我们枚举情况后用差分数组维护贡献 #include<bits/stdc++.h> typedef long long ll; using namespace std; 阅读全文
摘要:
A题 对于两个分别求解到每一位的时间,看看是否有相等的 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pll; const int N=2e5+10; const in 阅读全文
摘要:
圆的半径就是三角形中最短边的一半 因此我们枚举所有的边,从大到小维护bitset 如果对于当前边的两点,已经有一个点与他们相连,那么说明这条边就是答案 #include<bits/stdc++.h> typedef long long ll; using namespace std; typedef 阅读全文
摘要:
观察式子信息,就能发现原始序列的答案为f[i+1][j]^f[i][j-1]而来 因此维护一下区间最大值之后O(1)输出即可 #include<bits/stdc++.h> typedef long long ll; using namespace std; typedef pair<int,int 阅读全文