摘要: KMP + 状态机 点击查看代码 #include<iostream> #include<vector> #include<cstring> #include<algorithm> using namespace std; const int N = 60; const int mod = 1e9 阅读全文
posted @ 2022-06-24 23:02 wKingYu 阅读(37) 评论(0) 推荐(0)
摘要: 点击查看代码 #include<iostream> #include<cstring> #include<algorithm> using namespace std; const int N = 1e5 + 10; int n; int a[N]; int f[N][3]; int main() 阅读全文
posted @ 2022-06-24 21:47 wKingYu 阅读(22) 评论(0) 推荐(0)