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