摘要: 划分树+二分枚举http://acm.hdu.edu.cn/showproblem.php?pid=4417划分树http://www.cnblogs.com/pony1993/archive/2012/07/17/2594544.html直接搬来模板 打得View Code 1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 using namespace std; 5 #define N 100005 6 int a[N], as[N];//原数组,排序后数组 7 int 阅读全文
posted @ 2012-09-24 11:36 _雨 阅读(229) 评论(1) 推荐(0) 编辑