#1014 : Trie树
模版题,练手。
指针式动态版。
#include<bits/stdc++.h>
using namespace std;
#define sigma_size 26
int n,m;char buf[110];
struct Trie{
int cnt;
Trie* next[sigma_size];
Trie(){
cnt=0;
for(int i=0;i<sigma_size;i++)
this->next[i]=NULL;
}
}tr;
void insert(char* s){
Trie* p = &tr;
while(