摘要: 查找比a大的第k小的元素其实就是查找第sum(a)+k小的元素,用不需要二分的树状数组就可以了。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int N = 100000; 7 int c[N]; 8 ... 阅读全文
posted @ 2015-09-01 16:29 hxy_has_been_used 阅读(108) 评论(0) 推荐(0) 编辑