HDU 4333 Revolving Digits (扩展KMP)
#include #include #include using namespace std;const int maxn = 200005;char str[maxn];char tmp[maxn/2];int next[maxn];int ex[maxn];int ep[maxn];void get_next(char *s,int len){ next[0
原创
2013-08-09 10:36:52 ·
595 阅读 ·
0 评论