The Water ProblemTime Limit: 1500/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 153Accepted Submission(s): 123P...
分类:
其他好文 时间:
2015-09-13 21:30:45
阅读次数:
151
1001Alisha’s Party1002Ponds1003Aggregated Counting1004Clock Adjusting1005Travel1006Favorite Donut1007The Water Problem1008Elven Postman1009Food Proble...
分类:
其他好文 时间:
2015-09-13 21:24:19
阅读次数:
168
The Water ProblemTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=5443DescriptionIn Land waterless, water is a very...
分类:
其他好文 时间:
2015-09-13 18:40:04
阅读次数:
239
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2015-09-13 17:19:48
阅读次数:
209
解析参照:http://www.xuebuyuan.com/1586534.html开始被那个给图的骗了,以为只要下降上升就可以,而其实中间的某些局部最高点,并不能觉得整个雨水高度。最后还是两个指针向中间遍历,每次移动较小的,而当前最大的不动。计算面积要使用当前第二高的线。 1 class Solu...
分类:
移动开发 时间:
2015-09-08 18:16:54
阅读次数:
152
题意:寻找面积最大的挡板,面积等于 area=(j-i)*min(a[i],a[j]); 假设当前组成最大面积的是i和j,那么它具有如下性质:在i的左边没有更高的线,同理j的右边没有更高的线。那么,从数组的两边开始检索,假设为a[i]和a[j],如果a[i]<a[j], i++;否则 j-...
分类:
其他好文 时间:
2015-09-07 21:03:20
阅读次数:
137
Trapping Rain WaterGivennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to tr...
分类:
移动开发 时间:
2015-09-05 23:41:55
阅读次数:
695
Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.Fo...
分类:
移动开发 时间:
2015-09-05 22:18:07
阅读次数:
153
描述 Given n non-negative integers representing an elevation map where the width of each bar is 1, computehow much water it is able to trap after rainin...
分类:
移动开发 时间:
2015-09-04 12:21:29
阅读次数:
190
rain.cookie = rain.cookie || {};rain.cookie.getCookie = function(name) { var arg = name + "="; var alen = arg.length; var clen = document.coo...
分类:
Web程序 时间:
2015-09-01 12:15:12
阅读次数:
166