摘要:        
字典树又一基本题代码:#include #include #include #include #include using namespace std;#define N 1027struct node{ int count; node *next[30];}*root;char ss[13];node *create(){ node *p; p = (node *)malloc(sizeof(node)); p->count = 1; for(int i=0;inext[i] = NULL; return p;}void release(node *...    阅读全文
posted @ 2014-02-03 14:29
whatbeg
阅读(216)
评论(0)
推荐(0)
        
            
        
        
摘要:        
字典树基本题。代码:#include #include #include #include #include #include using namespace std;#define N 1027struct node{ int count; node *next[30];}*root;char ss[N][30];node *create(){ node *p; p = (node *)malloc(sizeof(node)); p->count = 1; for(int i=0;inext[i] = NULL; return p;}void rel...    阅读全文
posted @ 2014-02-03 14:25
whatbeg
阅读(246)
评论(0)
推荐(0)
        


 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号