2012年10月24日
摘要: #include <cstdio> #include <cstring> using namespace std; const int num_char=26; struct TrieNode { TrieNode *branch[num_char]; TrieNode *fail; int count;//if this is the last node of the word TrieNode() { fail=NULL; count=0; memset(branch,NULL,sizeof(bra... 阅读全文
posted @ 2012-10-24 18:44 MicZ 阅读(194) 评论(0) 推荐(0)