Codeforces Round 873 (Div. 1) B1.Range Sorting (Easy Version)(单调栈)
题目给定长为n(nusingnamespacestd;typedeflonglongll;#definerep(i,a,b)for(inti=(a);i=(b);--i)#defineSZ(a)(int)(a.size())#definefifirst#definesesecondtypedefpairP;constintN=5e3+10;intt,n,a[N];Pstk[N];intmain()