摘要:
梳理了一下字典序:hdu1251裸 字典树View Code 1 #include<stdio.h> 2 #include<string.h> 3 #include<iostream> 4 using namespace std; 5 struct trie{ 6 int cnt; 7 trie *next[26]; 8 }; 9 trie *root=new trie;10 void insert(char s[]){11 trie *p=root,*newnode;12 for(int i=0;s[i]!='\0';i++){13 if( 阅读全文
posted @ 2013-01-13 00:50
_sunshine
阅读(388)
评论(0)
推荐(0)

浙公网安备 33010602011771号