码迷,mamicode.com
首页 >  
搜索关键字:histogram of oriente    ( 481个结果
poj 2559 DP
两种解法。 我想到的是最大的矩形,中间一定有个最矮的某个单位矩形,所以用两个数组记录任何一个单位矩形histogram[i]左右两边第一个比它小的单位矩形的序号,这里找的时候用DP加速。 #include using namespace std; //the histogram stored from left to right long histogram[100001]...
分类:其他好文   时间:2014-05-08 01:59:37    阅读次数:443
481条   上一页 1 ... 47 48 49
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!