摘要:
A[CF1492A(800)] 计算离$a$,$b$,$c$的倍数最近是多少即可。 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); in 阅读全文
摘要:
A[CF1497A(800)] 可以发现从小到大排序后$mex$最大,于是排序后统计即可。 #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --) { int N; cin >> 阅读全文
摘要:
A[CF1208A(900)] 由于异或的性质,容易找到序列出现$%3$的规律。 #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --) { int A, B, N; cin > 阅读全文
摘要:
A[CF1155A(1000)] 枚举相邻两项,如果存在逆序对则可以。 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; c 阅读全文
摘要:
A[CF1552A(800)] 本质上是求序列的不动点个数,也就是和最终排好序的序列相同的地方。 #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --> 0) { int N; 阅读全文