用set存,每次删除一个,插入一个,维护两个set即可,复杂度nlogn,怎么TLE了鸭??? #include<bits/stdc++.h> usingnamespacestd; constintmaxn = 1e5+7; constintmaxm = 2e1+7; constintmod = 1e9+7; typedeflonglongll; typedefunsigned longlongull; intn,m,x,y,k; intar[maxn]; multiset<int> s1,s2; multis...