洛谷P5047 [Ynoi2019 模拟赛] Yuno loves sqrt technology II(离线区间逆序对+莫队二次离线)
题目给你一个长为n(1#include#include#includeusingnamespacestd;typedeflonglongll;constintN=100005;intn,m;lla[N];inlineintlowbit(intx){returnx&-x;}llc[N],sz=0;intp[N];boolcmp(intx,inty){returna[x]ls[N],rs[N];int