KMP
zzuli-dk
这个作者很懒,什么都没留下…
展开
-
hdu 1867 A + B for you again KMP
题意:找到两个字符串最长前缀后缀匹配。比并且是输出字符串较小的。#include <iostream>#include <cstdio>#include<limits>#include <map>#include <cstring>#include <string>#include <cstdlib>using namespace std;const int MAXN=100005;原创 2017-07-09 17:51:57 · 209 阅读 · 0 评论 -
poj 3461 KMP
#include #include #include#include #include #include #include using namespace std;const int N = 1000005;char patter[10005], origin[N];int Next[10005];void getnext(){ int i, j;原创 2016-10-23 14:57:50 · 279 阅读 · 0 评论