摘要:
归并排序 合并两个有序数组 p,mid 1 3 5 6 7 12 q 2 4 6 8 9 11 找到3比2大,则3之后的都比2大,所以2的逆序数就有mid-p+1个 // 2299.cpp : Defines the entry point for the console application.//#include <iostream>using namespace std;#define MA... 阅读全文
posted @ 2011-06-08 22:27
yangyh
阅读(246)
评论(0)
推荐(0)