hdu2203专题

hdu2203亲和串(kmp)

亲和串 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6610    Accepted Submission(s): 2988 Problem Description 人随着岁数的增长是越大越聪明还是越大越笨,这是

hdu2203(kmp)

链接:点击打开链接 题意:主串是一个环,问主串中是否含模式串 代码: #include <queue>#include <vector>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <iostream>#include <algorithm>using namespace std;