摘要: #include#include#defineM10005#defineN1000005intnext[M];charp[M],s[N];intn,m;voidget_next(){inti=0,j=-1;//i为后指针,j为前指针next[0]=-1;//next[i]代表kmp不匹配时j跳回的位... 阅读全文
posted @ 2014-04-18 14:20 byluoluo 阅读(134) 评论(0) 推荐(0) 编辑