摘要:
我感觉这场CF还是比较毒的,虽然我上分了。。。 Problem A QAQ 题目大意:给你一个由小写字母构成的字符串,问你里面有多少个QAQ。 思路:找字符串中的A然后找两边的Q即可,可以枚举找Q,也可以前缀和优化一下。 1 #include<bits/stdc++.h> 2 using names 阅读全文
摘要:
1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 const int P=1e6; 5 const int N=2e6+5; 6 const int M=2e6+5; 7 const int inf=0 阅读全文