随笔分类 - 题解 / 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;
阅读全文
摘要:A Not Too Hard 也是醉了,循环枚举就得了呗? 遍历一遍数组就可以 AC 了。 ACCode #include <bits/stdc++.h> using namespace std; const int N = 10; int n, x, a[N], sum;
阅读全文
摘要:A ab 长度不超过 100,随便搞~ 遍历一遍,如果一个是“a”且下一个字符是“b”就有,否则没有。 ACCode #include <bits/stdc++.h> #define log printf using namespace std; int n, len; string s
阅读全文