字典树
文章平均质量分 83
SSimpLe_Y
人一我百,人十我万,然而我做不到。
展开
-
Codeforces Round #434 D. Polycarp's phone book (字典树)
There are n phone numbers in Polycarp's contacts on his phone. Each number is a 9-digit integer, starting with a digit different from 0. All the numbers are distinct.There is the latest version原创 2017-09-18 08:20:19 · 1002 阅读 · 0 评论 -
lightoj 1269 - Consecutive Sum(字典树)
Little Jimmy is learning how to add integers. As in decimal the digits are 0 to 9, it makes a bit hard for him to understand the summation of all pair of digits. Since addition of numbers requires the原创 2017-03-12 15:21:01 · 1308 阅读 · 0 评论 -
2017 广西邀请赛&& hdu 6191 Query on A Tree(字典树启发式合并)
Problem DescriptionMonkey A lives on a tree, he always plays on this tree.One day, monkey A learned about one of the bit-operations, xor. He was keen of this interesting operation and wanted t原创 2017-09-01 12:03:49 · 826 阅读 · 0 评论