Another Array Problem(Codeforces Round #840 (Div. 2) and Enigma 2022 - Cybros LNMIIT)
Youaregivenanarrayaaofnnintegers.Youareallowedtoperformthefollowingoperationonitasmanytimesasyouwant(0ormoretimes):Choose22indicesii,jjwhere1≤i3的时候,我们可以把数组里的数全换成最大值mx,假设mx坐标为id对mx左边的数,选在mx左边的区间[1,id-1