码迷,mamicode.com
首页 >  
搜索关键字:water    ( 3290个结果
#11 Container With Most Water
找垂线和X轴组成“容器”所能乘水的最大值,即最大面积。
分类:其他好文   时间:2015-08-03 18:58:28    阅读次数:106
UML类图中的六种关系及实例【补充】
·继承和接口都比较常见,通过继承子类可以直接使用父类的(public,protected属性以及方法;而实现了Speakable接口的Person类必须定义其所有方法,包括speak());·依赖指的是某个类进行初始化或者实现特别的方法时,必须依赖其他特定对象;如上面例子中人必须依赖water和ox...
分类:其他好文   时间:2015-08-03 14:25:02    阅读次数:115
HDU2289——二分——Cup
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
Cup HDU 2289
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
[LeetCode][JavaScript]Number of Islands
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
Trapping Rain Water
问题描述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 10603 Fill(倒水问题 BFS)
貌似uva崩了,现在进不去,所以这道题还判断正确与否,其实无所谓了,我这是看的网上的代码,写的基本上一样,唉,没办法,不会做,又看了网上的题解,认真写理解吧还是。。。 构造了一个结构体,water数组用来保存三个杯子的状态,sum用来保存当前的倒水量,visit数组用来保存状态,以 防他们重复访问,三个杯子只需要两个杯子来判断,第三个已经确定,所以开一个二维数组就可以了。。。然后用 reac...
分类:其他好文   时间:2015-07-30 13:32:32    阅读次数:147
POJ 2386 Lake Counting_steven 解题心得
原题: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 Frogger(最小生成树)
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
ZOJ 3632 Watermelon Full of Water(dp+线段树或单调队列优化)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!