08 2021 档案

摘要:A[CF1492A(800)] 计算离$a$,$b$,$c$的倍数最近是多少即可。 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); in 阅读全文
posted @ 2021-08-13 08:26 19992147 阅读(93) 评论(0) 推荐(0)
摘要:A[CF1497A(800)] 可以发现从小到大排序后$mex$最大,于是排序后统计即可。 #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --) { int N; cin >> 阅读全文
posted @ 2021-08-12 07:28 19992147 阅读(81) 评论(0) 推荐(0)
摘要:A[HDU7053(800)] #include<cstdio> const double eps = 1e-4; int T; double p,q; void sol() { scanf("%lf%lf",&p,&q); if(q>=p)puts("N0 M0R3 BL4CK 1CE TEA!" 阅读全文
posted @ 2021-08-11 10:00 19992147 阅读(77) 评论(0) 推荐(0)
摘要:A[CF1208A(900)] 由于异或的性质,容易找到序列出现$%3$的规律。 #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --) { int A, B, N; cin > 阅读全文
posted @ 2021-08-09 21:08 19992147 阅读(97) 评论(0) 推荐(0)
摘要:A[CF1155A(1000)] 枚举相邻两项,如果存在逆序对则可以。 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; c 阅读全文
posted @ 2021-08-05 21:04 19992147 阅读(98) 评论(0) 推荐(0)
摘要:A[ABC172B(20)] 计算多少个对应的位置不同即可。 #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s, t; 阅读全文
posted @ 2021-08-04 20:51 19992147 阅读(94) 评论(0) 推荐(0)
摘要:A[CF1025A(800)] 观察一下容易发现只要存在两个不同字母即可。 #include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; string S; cin >> S; if (N == 1) { co 阅读全文
posted @ 2021-08-04 20:39 19992147 阅读(93) 评论(0) 推荐(0)
摘要:A[CF1552A(800)] 本质上是求序列的不动点个数,也就是和最终排好序的序列相同的地方。 #include <bits/stdc++.h> using namespace std; int main() { int T; cin >> T; while (T --> 0) { int N; 阅读全文
posted @ 2021-08-02 20:52 19992147 阅读(100) 评论(0) 推荐(0)