#include <algorithm> #include <vector> #define MOD 1000000007 class Solution { public: int InversePairs(vector<int> data) { vector<int> tmp; for(int i = 0;i < data.size();i++) tmp.push_back(data[i]); return sort(data, 0, data.size(),...