分治法求逆序對個數(歸併排序)

#include <bits/stdc++.h> #define ll long long #define INF 0x3f3f3f3f using namespace std; const int maxn = 1e4; int n; int a[maxn], t[maxn]; void read() { cin >> n; for(int i = 0; i < n; ++i)
相關文章
相關標籤/搜索