![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字典树
Lee丶0767
这个作者很懒,什么都没留下…
展开
-
HDU 1671 Phone List(字典树)
问题描述: Problem Description Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let’s say the phone catalogue listed these numbers: 1. Em原创 2016-10-09 15:07:37 · 158 阅读 · 0 评论 -
hdu 1247 Hat’s Words (字典树)
问题描述: Problem Description A hat’s word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary. You are to find all the hat’s words in a dictionary.Input原创 2016-10-09 15:06:06 · 155 阅读 · 0 评论 -
HDU 1251 统计难题 (字典树)
问题描述: Problem Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提原创 2016-10-09 15:09:06 · 189 阅读 · 0 评论