hdu-Frosh Week(树状数组)
求逆序数 ----》 离散化#include#include#include#includeusing namespace std;#define M 1000005typedef __int64 LL;LL a[M];int n;struct node{ LL x,y;}s[M];bool cmp(node p,node q){ return p.