![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字典树
至此曾经
从未坚持?
展开
-
hdu 5687 Problem C
Problem Description 度熊手上有一本神奇的字典,你可以在它里面做如下三个操作: 1、insert : 往神奇字典中插入一个单词 2、delete: 在神奇字典中删除所有前缀等于给定字符串的单词 3、search: 查询是否在神奇字典中有一个字符串的前缀等于给定的字符串 Input 这里仅有一组测试数据。第一行输入一个正整数N(1≤N≤10000原创 2016-11-22 13:24:00 · 225 阅读 · 0 评论 -
Codeforces Perfect Security
D. Perfect SecurityAlice has a very important message M consisting of some non-negative integers that she wants to keep secret from Eve. Alice knows that the only theoretically secure cipher is one-ti...原创 2018-05-04 14:00:19 · 130 阅读 · 0 评论 -
Five Day Couple “今日头条杯”首届湖北省大学程序设计竞赛(网络同步赛)
Mingming, a cute girl of ACM/ICPC team of Wuhan University, is alone since graduate from high school. Last year, she used a program to match boys and girls who took part in an active called Boy or Gir...原创 2018-05-06 18:29:16 · 169 阅读 · 0 评论