随笔分类 -  字符串 trie树

摘要:#include <queue> #include <cstdlib> #include <cmath> #include <cstdio> #include <string> #include <cstring> #include <iostream> #include <algorithm> u 阅读全文
posted @ 2020-10-06 12:40 摸鱼选手LLF 阅读(198) 评论(0) 推荐(0) 编辑
摘要:题意: 给一堆字符串 问你有多少个pair,是满足条件的 1 x是y的 后缀 2 x是y 的后缀加上y前面的任意一个字符 题解 开个trie树处理一下 #include<bits/stdc++.h> //#include<tr1::unordered_map> #define rep(i,a,n) 阅读全文
posted @ 2020-09-08 23:23 摸鱼选手LLF 阅读(225) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示