此题需用C++提交,不能用G++;
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct node { int sum; node *next[26]; }*tree,t; tree root; void Insert(char *str) { tree p=root,newnode; for(; *str!='
此题需用C++提交,不能用G++;
#include<stdio.h> #include<stdlib.h> #include<string.h> typedef struct node { int sum; node *next[26]; }*tree,t; tree root; void Insert(char *str) { tree p=root,newnode; for(; *str!='