合集-字符串
摘要:马拉车算法 struct Manacher { int n, huiwen_mx; string s, str; vector<int> d; Manacher(string &str_) { str = str_; n = str.size(); get_d(); get(); } inline
阅读全文
摘要:#include <bits/stdc++.h> using namespace std; using i64 = long long; const i64 mod = 998244353; const int N = 2e6 + 5; const int M = 1e6 + 5; int sa[N
阅读全文
摘要:后缀自动机 \((\text{SAM})\) 题单链接:luogu #include <bits/stdc++.h> using namespace std; using i64 = long long; const int N = 3000005; void init() { } int tot,
阅读全文

浙公网安备 33010602011771号