题目3419. 双向排序 - AcWing题库
给定序列 $(a_1,a_2,⋅⋅⋅,a_n)=(1,2,⋅⋅⋅,n)$,即 $a_i=i$。
小蓝将对这个序列进行 $m$ 次操作,每次可能是将 $a1,a_2,⋅⋅⋅,a{qi}$ 降序排
2022-02-28