摘要:
#include<bits/stdc++.h> using namespace std; const int N=6e5+777; char s[N]; int p[N]; int chur[N][30]; int n,tot; void dfs(int l,int num){ if(l==strl 阅读全文
摘要:
分治 #include<bits/stdc++.h> using namespace std; const int N=1e6; #define ll long long long long tmin[N],tmax[N],h[N],ans; void mk(int o,int l,int r){ 阅读全文