求数组中的逆序对
最后更新于:2022-04-01 20:31:10
~~~
#include
using namespace std;
int count = 0;
void merge(int *a,int p,int q,int r){
int n1 = q-p+1;
int n2 = r-q;
int *m = new int[n1];
int *n = new int[n2];
for(int i=0;i
';