【后缀数组】【线段树】codeforces102028H Can You Solve the Harder Problem?
H.CanYouSolvetheHarderProblem?timelimitpertest6.0smemorylimitpertest1024MBinputstandardinputoutputstandardoutputYouaregivenasequenceadenotedby(a1,a2,⋯,an).Aquerywith1≤l≤r≤nisdefinedasQmax(l,r)=max{al,