例题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1251
代码:
1 #include "stdio.h" // 字典树模板题 hdu 1251 2 #include "string.h" 3 #include "stdlib.h" 4 5 struct node{ 6 int num; 7 struct node *next[26]; 8 }; 9 10 struct node *root; 11 12 void Insert(char *k) 13 { 14 int i; 15 struct node *a = root; 16 while(k[0]!='