![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字典树
文章平均质量分 89
YCQ_Lancet
骐骥一跃,不能十步,驽马十驾,功在不舍
展开
-
Shortest Names UVA - 12506
In a strange village, people have very long names. For example: aaaaa, bbb and abababab. You see, it’s very inconvenient to call a person, so people invented a good way: just call a prefix of the names原创 2017-06-09 20:49:12 · 261 阅读 · 0 评论 -
D. Vitya and Strange Lesson
Today at the lesson Vitya learned a very interesting function — mex. Mex of a sequence of numbers is the minimum non-negative number that is not present in the sequence as element. For example, mex原创 2017-08-31 10:44:30 · 412 阅读 · 0 评论 -
HDU 1671 Phone List 字典树
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. Emergency 911 2. Alice 97原创 2017-11-17 21:26:51 · 298 阅读 · 0 评论