![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字典树
文章平均质量分 83
AgoniAngel
我的bug早已饥渴难耐
展开
-
HDOJ1671 Phone List(优化算法)
Description 输入的号码中如果有任意一个号码是另一个号码的前缀,只能拨通最短的那个号码,所以输出NO,否则输出YES。 InputThe first line of input gives a single integer, 1 <= t <= 40, the number of test cases. Each test ca原创 2015-09-12 17:46:22 · 493 阅读 · 0 评论 -
入门字典树 HDOJ1251 统计难题 HDOJ1075 字典翻译
HDOJ 1251 统计难题最简单的字典树,耗内存,对比一下C++和G++下相同的代码运行结果:G++虽然快点,但是直接MLE...所以交的时候还要注意选择编译器啊#include#include#include#include#include#include#define mst(a,b) memset(a,b,sizeof(a))using namespace原创 2016-08-01 23:14:32 · 643 阅读 · 0 评论