
KMP
M_ercury_
这个作者很懒,什么都没留下…
展开
-
【笔记+模板】 kmp算法 待更新
例题: https://vjudge.net/problem/POJ-3461 代码:#include<iostream> #include<cstdio> #include<cstring> using namespace std; const int N=10000000+50; char s[N],p[N]; int n; int next[N]; void get_next(){原创 2017-10-13 21:52:20 · 286 阅读 · 0 评论 -
Poj 2406 Power Strings
http://www.studyai.com/article/114bf471原创 2017-10-30 07:49:44 · 431 阅读 · 0 评论