分治算法-求排列的逆序数 问题: 笨方法:使用循环嵌套一个一个试,但是如果数据量过大会超时! 代码: #include<iostream> #include<cstring> using namespace std; long long count=0; void memesert(int *a,int left,int mid,int right) { int *b=new int[right-left+1]