摘要: 题意:给你n个单词,再给你一串字符,求在字符中有多少个单词出现过#include #include#includeusing namespace std;#define N 10010#define MAXLEN 1000010struct node{ node *child[26]; node *fail; int count; void init(){ for(int i=0;ichild[t]!=NULL) now=now->child[t]; else{ next=new node; next->init(); now->child[t]=next; now=n... 阅读全文
posted @ 2013-08-19 00:07 Teemo的技术blog 阅读(98) 评论(0) 推荐(0)