摘要: #include using namespace std; char A[1004],B[1004]; int P[1004],n,m; inline void pre(){ P[1]=0; int j=0; for(int i=1;i<m;i++){ while(j&&B[j+1]!=B[i+1]) j=P[j]; if(B[j+1]==... 阅读全文
posted @ 2018-12-22 21:09 WiFiMonster 阅读(385) 评论(0) 推荐(0) 编辑