摘要: #kmp模板 匹配字符串 //next存下的值是当前区间最大前缀与后缀重合的值。 #include<iostream> using namespace std; const int N = 100010,M = 1000010; int n,m; char p[N],s[M]; int ne[N]; 阅读全文
posted @ 2021-04-18 15:25 Xuuxxi 阅读(51) 评论(0) 推荐(0)