Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2012年11月19日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2594扩展KMPView Code 1 #include <cstdio> 2 #include <cstring> 3 using namespace std; 4 5 const int N=50010; 6 char s1[N],s2[N]; 7 int next[N],ext[N]; 8 void getnext(char *sp) 9 {10 next[0]=strlen(sp);11 int p=0;12 while(sp[p+1] && sp[p]==sp 阅读全文
posted @ 2012-11-19 18:32 Qiuqiqiu 阅读(136) 评论(0) 推荐(0) 编辑