摘要:
"Luogu P3375 【模板】KMP字符串匹配" Code cpp include include include include include define LL long long using namespace std; const int N=1000005; int n,m,p[N] 阅读全文
摘要:
"Luogu P1470 最长前缀 Longest Prefix" 注释 这道题与 "上一篇博客" 的题几乎一样 解析 + 有点麻烦的地方就是字符串的输入 方法一:类dp Code cpp include include include include include define LL long 阅读全文
摘要:
本文共三道题目,都算是 $ Trie $ 树的模板题 "1.Libre 10049 Phone List" Code "2.Libre 10050 The XOR Largest Pair" Code cpp include include include include include defin 阅读全文
摘要:
"1.Luogu P1908 逆序对" 归并排序 cpp include include include include include include define LL long long using namespace std; const int N=1e5+5; int n,b[N],c[ 阅读全文