摘要: KMP P3375 void iGetnext(){ for(int i=1,j=0;i<len2;i++){ for(;j && b[i]!=b[j];j=pre[j]); if(b[i]==b[j])j++; pre[i+1]=j; }}void iFind(){ for(int i=0,j=0 阅读全文
posted @ 2017-11-08 09:33 GeneralLiu 阅读(199) 评论(0) 推荐(0) 编辑