随笔分类 -  题解 / AT-ABC串讲

ABC串讲
摘要:A Online Shopping 模拟计算就得了。 ACCode #include <bits/stdc++.h> #define log printf using namespace std; const int N = 10010; int n, s, k, p[N], q[N], sum; 阅读全文
posted @ 2024-01-19 21:35 worker2011 阅读(14) 评论(0) 推荐(0) 编辑
摘要:A Not Too Hard N8 也是醉了,循环枚举就得了呗? 遍历一遍数组就可以 AC 了。 ACCode #include <bits/stdc++.h> using namespace std; const int N = 10; int n, x, a[N], sum; 阅读全文
posted @ 2024-01-19 21:18 worker2011 阅读(12) 评论(0) 推荐(0) 编辑
摘要:A ab S 长度不超过 100,随便搞~ 遍历一遍,如果一个是“a”且下一个字符是“b”就有,否则没有。 ACCode #include <bits/stdc++.h> #define log printf using namespace std; int n, len; string s 阅读全文
posted @ 2024-01-18 22:21 worker2011 阅读(20) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示