acm_字典树
xxtz_xt
wa到怀疑人生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Find MaxXorSum NBUT - 1597(字典树)
点击打开链接 Given n non-negative integers, you need to find two integers a and b that a xor b is maximum. xor is exclusive-or. InputInput starts with an integer T(T For each test case, the first line原创 2017-07-28 21:58:46 · 306 阅读 · 0 评论 -
HDU - 1251 统计难题 (字典树)
点击打开链接 Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提问,每行一个提问,每原创 2017-07-28 21:51:45 · 266 阅读 · 0 评论
分享