在归并排序模版上增加一句class Solution { private: using ll = long long; ll mergeSort(vector<int>& nums, vector<int>& tmp, int low, int high) { if (low >= high) return 0; int mid = (low + high) >> 1; ll cnt = mergeSort(tmp, nums, low, mid) + mergeSort(...