HDU 1686 Oulipo
摘要:
题目:http://acm.hdu.edu.cn/showproblem.php?pid=1686大意:求模式串在主串出现的次数。。(可以重复)#include <iostream>#include <string>using namespace std;const int L1 = 1000010;const int L2 = 10010;char s[L1], p[L2];int nxt[L2], l1, l2;int res;void GetNext(){ int k = -1, j = 0; nxt[0] = -1; while (j < l2) { .. 阅读全文
posted @ 2012-04-01 17:55 [S*I]SImMon_WCG______* 阅读(183) 评论(0) 推荐(0) 编辑