摘要: 字典树加拓扑排序 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 const int maxnode=300000+5; 8 const int maxn=30000+5; 9 struct Trie 10 { 11 int ch[maxnode][26]; 12 int pre[maxnode]; 13 int val[maxnode]; 14 string s[maxn]; 15 int terminal[maxn]; 16 int s... 阅读全文
posted @ 2013-10-20 00:18 sooflow 阅读(239) 评论(0) 推荐(0) 编辑