题目 数组中的逆序对最爱的树状数组 int mod = (int) 1e9 + 7; public int InversePairs (int[] nums) { // write code here int[] a = nums.clone(); Arrays.sort(a); int n = a.length; int[] t = new int[n + 1]; long ans = 0; for (int v: nums) { int l...