HDU1711 【kmp算法 基础题】
摘要:
#include#includeint next[10005],lena,lenb;int a[1000005],b[10005];void set_naxt()//子串的next数组{ int i=0,j=-1; next[0]=-1; while(i<lenb) { ... 阅读全文
posted @ 2014-08-07 16:23 tf girl 阅读(156) 评论(0) 推荐(0) 编辑