
acm_字典树
久石_giao
今天是个好日子!!!
展开
-
1305 Immediate Decodability(字典树)
Immediate Decodability(链接) Sample Input 01 10 0010 0000 9 01 10 010 0000 9 Sample Output Set 1 is immediately decodable Set 2 is not immediately decodable //模板题#include #incl原创 2017-11-21 21:39:31 · 213 阅读 · 0 评论 -
hdoj 1251 统计难题(字典树)
统计难题(链接) Input 输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提问,每行一个提问,每个提问都是一个字符串. 注意:本题只有一组测试数据,处理到文件结束. Output 对于每个提问,给出以该字符串为前缀的单词的数量.原创 2017-11-21 22:47:34 · 191 阅读 · 0 评论