【归并排序】ZOJ-3574-Under Attack II
这个用归并算法求逆序数的算法正的是很赞……贴下以后当模板……
题目
#include
#include
#include
using namespace std;
struct T
{
int l,r;
}p[30005];
int cnt,a[30005];
bool cmp(T x,T y)
{
return x.l<y.l;
}
void msort(int l,int r)
原创
2012-02-29 01:24:36 ·
486 阅读 ·
0 评论