1 #include <iostream> 2 #include <cstdlib> 3 #include <cstdio> 4 5 using namespace std; 6 7 struct tree 8 { 9 int count; 10 tree *next[26]; 11 }; 12 tree *head; 13 14 void Insert(char *ch) 15 { 16 int pp=0; 17 tree *p; 18 p=head; 19 for(;;) 20 { 21 if(ch[pp]=='