Shirlies
宁静专注认真的程序媛~

随笔分类 -  acm_字典树

uva 10391字典树
摘要:View Code 1 #include <cstdio> 2 #include <cstring> 3 4 const int sonnum = 26; 5 char word[120005][30]; 6 struct trie 7 { 8 bool term; 9 struct trie *son[sonnum];10 };11 12 trie* create_trie()13 {14 trie *temp = new trie;15 temp -> term = false;16 for(int i = 0;i <sonnum;i++)17 ... 阅读全文
posted @ 2012-03-15 15:06 Shirlies 阅读(283) 评论(0) 推荐(0)