
字典树
文章平均质量分 82
leibniz_zhang
欢天喜地小企鹅
展开
-
nyoj 290 动物统计加强版 <字典树>
动物统计加强版时间限制:3000 ms | 内存限制:150000 KB难度:4描述在美丽大兴安岭原始森林中存在数量繁多的物种,在勘察员带来的各种动物资料中有未统计数量的原始动物的名单。科学家想判断这片森林中哪种动物的数量最多,但是由于数据太过庞大,科学家终于忍受不了,想请聪明如你的ACMer来帮忙。输入第一行输入动物名字的数量N(1输出输出原创 2016-05-21 00:06:46 · 492 阅读 · 0 评论 -
北京赛区(2016)网络赛 题目1 : The Book List 【字典树】
题目1 : The Book List时间限制:1000ms单点时限:1000ms内存限制:256MB描述The history of Peking University Library is as long as the history of Peking University. It was build in 1898. At the原创 2016-09-24 18:51:27 · 831 阅读 · 0 评论 -
hdoj 5687 2016"百度之星" - 资格赛Problem C【字典树--增--删--查】
欢乐嘣嘣嘣:5687字典树的添加--查找--删除--注意:删除的是所有前缀等于给定字符串的单词。例如:插入:abcabd删除abc查找ab=YES删除abd查找ab=NO代码:#include#include#includeusing namespace std;struct trie{原创 2016-08-12 23:54:54 · 607 阅读 · 0 评论 -
ZZULIOJ 1426: 字典树again【字典树+bfs】
1426: 字典树againTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 247 Solved: 48SubmitStatusWeb BoardDescriptionGy最近学习了字典树结构,无聊的他又想到了一个新的问题,给定一个字符串集合S={str1, str2, …,strn}和一个字符串str,在str后接尽原创 2016-05-29 18:48:54 · 447 阅读 · 0 评论 -
hdoj 1251 统计难题【字典树--模板-增-查】
统计难题Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 30133 Accepted Submission(s): 11734Problem DescriptionIgnatius最近遇到一个难题,老师交给他原创 2016-05-18 18:43:54 · 664 阅读 · 0 评论 -
【zzulioj】河南多校训练(985专场)<位运算--DP---思维--扩展欧几里德---回溯---字典树---状态优化>
Problem B: 985的数学难题Time Limit: 2 Sec Memory Limit: 128 MBSubmit: 85 Solved: 13SubmitStatusWeb BoardDescription985有n个正整数,他想快速知道下面函数的返回值int a[N+1];long long Solve() { int i,原创 2016-08-03 19:19:43 · 1285 阅读 · 0 评论 -
河南多校暑期训练-恢复赛 <字典树,最短路,queue,map,模拟,思维>
A - BabelfishTime Limit:3000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice POJ 2503DescriptionYou have just moved from Waterloo to a big city原创 2016-07-27 19:59:34 · 1031 阅读 · 0 评论 -
POJ 2001 - Shortest Prefixes《字典树,求每个单词的最简化》
C - Shortest PrefixesTime Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64uSubmit Status Practice POJ 2001DescriptionA prefix of a string is a substring s原创 2016-06-13 07:30:01 · 378 阅读 · 0 评论 -
nyoj 163 Phone List && poj 3630 Phone List <字典树 动态建树&&静态建树>
Phone List时间限制:1000 ms | 内存限制:65535 KB难度:4描述 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 cata原创 2016-05-20 20:47:03 · 504 阅读 · 0 评论 -
hdoj 2222 Keywords Search 【字典树挤进1ms----啊--我要学AC自动机】
传送门:2222正要学AC自动机--发现 k*n=5*10^7 -- 就用单纯的字典树过了--建树--扫描字符串--统计---代码:#include#include#includeusing namespace std;struct trie{ trie * child[26]; int shu; int hao;}P[600000];int原创 2016-08-11 09:34:39 · 464 阅读 · 0 评论