找垂线和X轴组成“容器”所能乘水的最大值,即最大面积。
分类:
其他好文 时间:
2015-08-03 18:58:28
阅读次数:
106
·继承和接口都比较常见,通过继承子类可以直接使用父类的(public,protected属性以及方法;而实现了Speakable接口的Person类必须定义其所有方法,包括speak());·依赖指的是某个类进行初始化或者实现特别的方法时,必须依赖其他特定对象;如上面例子中人必须依赖water和ox...
分类:
其他好文 时间:
2015-08-03 14:25:02
阅读次数:
115
The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height?The r...
分类:
其他好文 时间:
2015-08-01 15:34:17
阅读次数:
85
The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tell us it height?The r...
分类:
其他好文 时间:
2015-08-01 10:01:36
阅读次数:
120
Number of IslandsGiven a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounded by water and is formed by con...
分类:
编程语言 时间:
2015-08-01 00:58:34
阅读次数:
743
问题描述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 rainin...
分类:
移动开发 时间:
2015-07-31 10:20:20
阅读次数:
133
貌似uva崩了,现在进不去,所以这道题还判断正确与否,其实无所谓了,我这是看的网上的代码,写的基本上一样,唉,没办法,不会做,又看了网上的题解,认真写理解吧还是。。。
构造了一个结构体,water数组用来保存三个杯子的状态,sum用来保存当前的倒水量,visit数组用来保存状态,以
防他们重复访问,三个杯子只需要两个杯子来判断,第三个已经确定,所以开一个二维数组就可以了。。。然后用
reac...
分类:
其他好文 时间:
2015-07-30 13:32:32
阅读次数:
147
原题:DescriptionDue to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 2 #incl....
分类:
其他好文 时间:
2015-07-26 20:31:20
阅读次数:
169
poj 2253 FroggerDescription
Freddy Frog is sitting on a stone in the middle of a lake. Suddenly he notices Fiona Frog who is sitting on another stone. He plans to visit her, but since the water is dir...
分类:
其他好文 时间:
2015-07-25 15:17:16
阅读次数:
138
Watermelon Full of Water
Time Limit: 3 Seconds Memory Limit: 65536 KB
Watermelon is very popular in the hot summer. Students in ZJU-ICPC Team also love watermelon very much and they hope ...
分类:
其他好文 时间:
2015-07-25 07:12:32
阅读次数:
207