摘要: Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist... 阅读全文
posted @ 2015-08-05 16:28 尾巴草 阅读(140) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-08-05 11:21 尾巴草 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 题意:紧贴x轴有一些相互挨着的矩形,给定每个矩形的长宽,问他们可以形成的最大矩形是多少。Sample Input31 23 41 233 41 23 4-1Sample Output1214 1 #include 2 #include 3 #include 4 5 using namespa... 阅读全文
posted @ 2015-08-05 11:01 尾巴草 阅读(329) 评论(0) 推荐(0) 编辑