![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tire树
文章平均质量分 56
NO_WONDER
这个作者很懒,什么都没留下…
展开
-
tire树~!
程序代码: #include #include using namespace std; #define maxn 3300000 struct Node { int nxt[26]; int cnt[26]; }; Node node[maxn];原创 2011-08-12 21:23:23 · 639 阅读 · 0 评论 -
map,string string string string string!!!!!!!!!
字典树一水题,但是我表示压力很大。。。因为对字典树还不熟悉。。。~~~~(>_ 题目出处:http://acm.hdu.edu.cn/showproblem.php?pid=1075 表示STL map很给力,string太坑人了!!!!!!!!!还我从10原创 2011-08-15 02:04:13 · 1426 阅读 · 0 评论 -
hdoj 难题统计--tire
题目出处:http://acm.hdu.edu.cn/showproblem.php?pid=1251 典型的tire树也是最简单的,直接套模板水过~~~~~~ 不知道为什么用scanf老是出错,gets就可以。。。 PS:AC代码: #include using na原创 2011-08-16 20:55:18 · 520 阅读 · 0 评论 -
PKU3630---tire
PS:代码 #include #include using namespace std; #define max 60010 struct Node { bool flag; int nxt[10]; }; Node node[max]; int loc原创 2011-08-21 13:39:15 · 449 阅读 · 0 评论 -
PKU 2503--tire买一送一
PS:代码 #include #include #define maxn 2000000 using namespace std; struct TREE { bool flag; int nxt[26]; char words[15]; }; TRE原创 2011-08-21 13:43:29 · 545 阅读 · 0 评论 -
无语了说!
看来看去,真不知道该弄什么了,忙来忙去只整了这个皮囊。。没有脸面说,弱弱的留下代码: #include #include using namespace std; struct node { node *next[26]; i原创 2011-08-24 02:54:03 · 422 阅读 · 0 评论