问题定义 逆序对(Inversion)指满足 i < j 且 a[i] > a[j] 的数对 (a […]
什么是树状数组 树状数组(Binary Indexed Tree / Fenwick Tree)用数组高效维护