KMP
独语梦魇
专注优化和算法优化
展开
-
POJ 2572 Seek the Name, Seek the Fame
简单KMP,不解释#include#include#include#includeusing namespace std;int next[400005];int num[400005];int main(){ int i,j,len; char str[400005]; while(scanf("%s",str)!=EOF) { l原创 2014-04-29 20:21:27 · 353 阅读 · 0 评论 -
HDU1867 A + B for you again
简单的KMP,两个单词链接起来,有两种连接方法原创 2014-04-15 17:46:53 · 457 阅读 · 0 评论