摘要:
https://ac.nowcoder.com/acm/problem/15253 可以先把模式串拆分,计算出每部分,然后排序 读入模式串,匹配这两部分 #include <bits/stdc++.h> using namespace std; typedef long long ll; typed 阅读全文
摘要:
https://www.luogu.com.cn/problem/P1330 #include<bits/stdc++.h> using namespace std; const int maxn = 1e5 + 5; int cnt[2]; int color[maxn]; vector<int> 阅读全文