摘要:
最近重新学习了一下KMP算法,然后重新做了自己的模板。题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1686 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 #define MAXN 10010 7 #define MAXM 1000010 8 char str1[MAXN]; 9 char str2[MAXM];10 int Next[MAXN];11 12 int len1,len2;13 14 void Get_Next(){15 int j=... 阅读全文
posted @ 2013-05-20 10:57
ihge2k
阅读(250)
评论(0)
推荐(0)

浙公网安备 33010602011771号