字典树
文章平均质量分 52
F丶轩
这个作者很懒,什么都没留下…
展开
-
【字典树模板(数组实现)】HDU 1251 统计难题
#include #include #define NODE 1000005 int next[NODE][26]; int v[NODE]; int node; void init(){ node=1; memset(next[0],0,sizeof(next[0])); } void add(char *str){ int len=strlen(str);原创 2014-06-19 14:16:02 · 960 阅读 · 0 评论 -
【01字典树】HDU 4825 Xor Sum
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4825原创 2014-06-19 15:00:52 · 621 阅读 · 0 评论