Qiuqiqiu  
不管道路多么崎岖坎坷,我永远不停下追逐梦想的脚步!

2012年3月12日

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1251字典树View Code 1 #include <stdio.h> 2 #include <string.h> 3 4 const int N=500010; 5 struct node 6 { 7 int nex[26]; 8 int cnt; 9 }tr[N];10 int sz;11 void insert(char *s)12 {13 int k=0; tr[k].cnt++;14 int i;15 for (i=0;s[i];i++)16 {... 阅读全文
posted @ 2012-03-12 21:44 Qiuqiqiu 阅读(250) 评论(0) 推荐(1) 编辑