上一页 1 ··· 41 42 43 44 45
摘要: 视频链接:F10 后缀数组(SA)_哔哩哔哩_bilibili Luogu P3809 【模板】后缀排序 // Luogu P3809 【模板】后缀排序 #include <algorithm> #include <cstdio> #include <cstring> #include <iostr 阅读全文
posted @ 2022-04-16 09:48 董晓 阅读(1018) 评论(1) 推荐(1)
摘要: 视频链接:F09 后缀自动机(SAM)_哔哩哔哩_bilibili Luogu P3804 【模板】后缀自动机 (SAM) #include <iostream> #include <cstring> #include <algorithm> #include <vector> using name 阅读全文
posted @ 2022-04-16 09:39 董晓 阅读(1037) 评论(1) 推荐(1)
摘要: 视频链接:F08【模板】AC自动机——信息学竞赛算法_哔哩哔哩_bilibili Luogu P3808 【模板】AC 自动机(简单版) #include <cstring> #include <iostream> #include <algorithm> #include <queue> usin 阅读全文
posted @ 2022-04-16 09:33 董晓 阅读(2095) 评论(0) 推荐(2)
摘要: 视频链接:F07【模板】01Trie 最大异或对_哔哩哔哩_bilibili // 01Trie 最大异或对 #include <iostream> using namespace std; const int N=100010; int n, a[N]; int ch[N*31][2],cnt; 阅读全文
posted @ 2022-04-15 08:56 董晓 阅读(1070) 评论(0) 推荐(1)
摘要: F06 字典树(Trie)_哔哩哔哩_bilibi P8306 【模板】字典树 - 洛谷 // 字典树 O(n) #include<bits/stdc++.h> using namespace std; const int N=3000005; int T,q,n; char s[N]; int c 阅读全文
posted @ 2022-04-15 08:49 董晓 阅读(2224) 评论(3) 推荐(4)
摘要: F05 Manacher(马拉车)_哔哩哔哩_bilibili P3805 【模板】manacher - 洛谷 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N=3 阅读全文
posted @ 2022-04-14 08:53 董晓 阅读(1735) 评论(0) 推荐(3)
摘要: 视频链接:F04 扩展 KMP(Z 函数)_哔哩哔哩_bilibili Luogu P5410【模板】扩展 KMP(Z 函数) // P5410 【模板】扩展 KMP(Z 函数) #include <iostream> #include <cstring> #include <cstdio> usi 阅读全文
posted @ 2022-04-14 08:44 董晓 阅读(1597) 评论(0) 推荐(3)
摘要: 视频链接:F03【模板】KMP 算法——信息学竞赛算法_哔哩哔哩_bilibili Luogu P3375【模板】KMP字符串匹配 #include <cstring> #include <iostream> #include <algorithm> using namespace std; con 阅读全文
posted @ 2022-04-13 19:30 董晓 阅读(4140) 评论(0) 推荐(14)
摘要: 视频链接:F02 字符串哈希_哔哩哔哩_bilibili #include <iostream> using namespace std; typedef unsigned long long ULL; const int N = 1000010, P = 131; int n, m; char s 阅读全文
posted @ 2022-04-13 19:21 董晓 阅读(2037) 评论(3) 推荐(4)
摘要: 视频链接:F01 最小表示法_哔哩哔哩_bilibili Luogu P1368 【模板】最小表示法 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 7e5; 阅读全文
posted @ 2022-04-13 19:18 董晓 阅读(1728) 评论(2) 推荐(7)
上一页 1 ··· 41 42 43 44 45