摘要:
SAM裸题。这道题卡空间。要小心数组别开炸了。 cpp include include typedef long long ll; const int maxn = 2e7+20; int par[maxn],mx[maxn],tr[maxn][4]; int cnt=1,last=1; inlin 阅读全文
摘要:
"题目链接https://www.luogu.org/problemnew/show/P2408" SAM裸题,大力求就行了 cpp include include typedef long long ll; const int maxn = 2e5+20; int par[maxn],mx[max 阅读全文