![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字典树
Lesroad
这个作者很懒,什么都没留下…
展开
-
poj3630—Phone List(字典树)
传送门:点我 Sample Input 2 3 911 97625999 91125426 5 113 12340 123440 12345 98346 Sample Output NO YES 题意:给出一些字符串,判断是否有字符串是另一个字符串的前缀 字典树算法详解:http://blog.csdn.net/piaocoder/article/details/47836559原创 2017-08-27 00:11:50 · 183 阅读 · 0 评论 -
hdu1251—统计难题
传送门:点我 Problem Description Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀). Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的原创 2017-08-27 12:36:10 · 321 阅读 · 0 评论 -
hdu1004—Let the Balloon Rise
传送门->点我 Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is guessing the most popular problem. When th原创 2017-08-27 12:29:03 · 220 阅读 · 0 评论