摘要:
#include <bits/stdc++.h> using namespace std; #define int long long const int mod = 100001; string str; int s,sj,g; int ans; signed main(){ ios::sync_ 阅读全文
摘要:
https://www.luogu.com.cn/problem/P1638 #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e6 + 10; int n,m; int a[m 阅读全文
摘要:
https://ac.nowcoder.com/acm/contest/4853/C #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e3 + 5; const int mod 阅读全文
摘要:
我们按位考虑,那么每一位的贡献就是在二进制下这一位在n个数中出现的次数的平方乘上二进制的系数。 #include <bits/stdc++.h> using namespace std; #define int long long const int maxn = 1e5 + 5; int n, a 阅读全文