摘要:
之乎者助得甚? 给定字符串$s$和序列$w$,试求 $$ \max_{1\le i using namespace std; const int N=1e5+10; int n,w[N],sa[N],ht[N],rc[N]; char s[N]; void buildSa() { static in 阅读全文
摘要:
膜一发 "KsCla巨佬" ~~~cpp include using namespace std; typedef long long ll; const int N=2e5+10; struct __SAM { int lst,tot,ch[N][4],prt[N],mxl[N]; void in 阅读全文