import java.util.*; public class Solution { public int InversePairs(int[] nums) { int len = nums.length; //判断数组长度,长度为1不构成逆序对 if (len < 2) return 0; int[] copy = new int[len]; //复制nums数组到copy数组中 System.arraycopy(nums, 0, copy, 0, len); ...