摘要:
struct PT{ static constexpr int N=2e5+5; //值域 int up; vector<int>b; map<int,int>mp; int cntNodes,root[N]; struct node{ int l,r; int cnt; }tr[4*N+17*N] 阅读全文
摘要:
struct SuffixAutomaton { static constexpr int N = 1e6; struct node { int len, link, nxt[26]; int siz; } t[N << 1]; int cntNodes; SuffixAutomaton() { c 阅读全文