摘要: 以高为数轴,维护每个区间的剩余最大值,用线段树二分做#include #define maxn 200100int Max[4*maxn];int h,w,n;int max(int a,int b){ if(a>b) return a; else return b;}void buil... 阅读全文
posted @ 2014-03-09 17:06 贝尔摩德 阅读(112) 评论(0) 推荐(0) 编辑