摘要: 今天我学习了字典树(trie tree) 从 作者:xxy 出处: http://www.cnblogs.com/TheRoadToTheGold/ 学的 可以用来查询字符串是多少字符串的前缀 sum在插入时每一层都会加1 感觉非常精妙 cpp include using namespace std 阅读全文
posted @ 2019-02-14 21:36 新新人類 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 一道非常简单的map题吧 ~~因为没做过hd的题所以输出格式爆炸~~ cpp include using namespace std; int n; int m; map,int mm; int main() { cin n; map,int ::iterator it; string ts1,ts 阅读全文
posted @ 2019-02-14 21:35 新新人類 阅读(101) 评论(0) 推荐(0) 编辑