传送门 题目大意 给出一个长度为 n n n 的序列 a a a,并且有 m m m 个操作,每个操作包含一个 t i t_i ti 和 r i r_i ri。若 t i = 1 t_i=1 ti=1,则将 a a a 中前 r i r_i ri 个从小到大排序。若 t i = 2 t_i=2 t