A 2d grid map of m rows and n columns is initially filled with water. We may perform an addLand operation which turns the water at position (row, col) ...
分类:
其他好文 时间:
2016-08-15 14:13:29
阅读次数:
188
Given 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 connecting adjacen ...
分类:
其他好文 时间:
2016-08-15 13:00:06
阅读次数:
121
A water problem Time Limit: 5000/2500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 342 Accepted Submission(s): 187 P ...
分类:
其他好文 时间:
2016-08-15 10:20:38
阅读次数:
187
Problem Description Two planets named Haha and Xixi in the universe and they were created with the universe beginning. There is 73 days in Xixi a year ...
分类:
其他好文 时间:
2016-08-14 23:47:12
阅读次数:
194
来自HDOJ: 5833 ( Zhu and 772002 ) 5835 ( Danganronpa ) 5832 ( A water problem ) 5842 ( Lweb and String ) ...
分类:
其他好文 时间:
2016-08-14 20:46:12
阅读次数:
420
传送门
A water problemTime Limit: 5000/2500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 60 Accepted Submission(s): 37Problem Description Two planets named Haha...
分类:
其他好文 时间:
2016-08-14 19:26:59
阅读次数:
232
题意:给定一个大数,问你取模73 和 137是不是都是0. 析:没什么可说的,先用char 存储下来,再一位一位的算就好了。 代码如下: ...
分类:
其他好文 时间:
2016-08-14 19:07:08
阅读次数:
113
Problem Description Two planets named Haha and Xixi in the universe and they were created with the universe beginning.There is 73 days in Xixi a year ...
分类:
其他好文 时间:
2016-08-14 14:25:26
阅读次数:
232
此题为小白书暴力求解法隐式图搜索的训练参考 题目链接 http://acm.hust.edu.cn/vjudge/problem/19527 解题思路 因为要求最小倒水量,所以不能把重复的节点都去掉,要把倒水量比较小的节点也加进去。 可以建立一个water数组,water[x]表示达到x水量的最小倒 ...
分类:
其他好文 时间:
2016-08-13 21:00:38
阅读次数:
173
Given 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 connecting adjacen ...
分类:
其他好文 时间:
2016-08-11 01:01:23
阅读次数:
170