ural 1090. In the Army Now
树状数组的wiki页面:http://zh.wikipedia.org/wiki/%E6%A0%91%E7%8A%B6%E6%95%B0%E7%BB%84
题意:给出士兵的身高站位求逆序数,本题中是求某人前面比他矮的人的个数和。
#include
#include
#include
using namespace std;
const int N = 10007;
int c[N]
原创
2013-08-05 12:01:21 ·
1085 阅读 ·
0 评论