package com.water.activity; import java.util.List; import android.app.Activity; import android.os.Bundle; import android.telephony.CellLocation; impor ...
分类:
移动开发 时间:
2016-08-10 14:02:44
阅读次数:
272
Laura Luo has just invented a game. Given a beautiful pencil sketch with n points, you're to colorize it with water pens by painting circuits. Each ti ...
分类:
其他好文 时间:
2016-08-08 21:05:04
阅读次数:
183
题意: Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e ...
分类:
其他好文 时间:
2016-08-06 18:59:55
阅读次数:
192
问题描述: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ra ...
分类:
移动开发 时间:
2016-08-05 17:29:00
阅读次数:
234
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-05 06:27:38
阅读次数:
100
题目描述 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? ...
分类:
其他好文 时间:
2016-08-04 13:12:07
阅读次数:
178
2016年7月31日 星期日 --出埃及记 Exodus 15:27Then they came to Elim, where there were twelve springs and seventy palm trees, and they camped there near the water ...
分类:
其他好文 时间:
2016-08-01 09:13:48
阅读次数:
139
水流(water) 题目描述 全球气候变暖,小镇A面临水灾,于是你必须买一些泵把水抽走。泵的抽水能力可以认为是无穷大,但你必须把泵放在合适的位置,从而能使所有的水能流到泵里。小镇可以认为是N×M的矩阵,矩阵里的每个单元格都是一个a~z小写字母,该小写字母表示该格子的高度,字母大的表示该单元格比较高, ...
分类:
其他好文 时间:
2016-07-31 14:33:38
阅读次数:
314
水流(water) 时间限制: 1 Sec 内存限制: 64 MB提交: 9 解决: 2[提交][状态][讨论版] 题目描述 全球气候变暖,小镇A面临水灾,于是你必须买一些泵把水抽走。泵的抽水能力可以认为是无穷大,但你必须把泵放在合适的位置,从而能使所有的水能流到泵里。 小镇可以认为是N×M的矩阵, ...
分类:
其他好文 时间:
2016-07-31 11:23:40
阅读次数:
359
题意:给定 n 个数,然后有 q 个询问,问你每个区间的最大值。 析:数据很小,直接暴力即可,不会超时,也可以用RMQ算法。 代码如下: ...
分类:
其他好文 时间:
2016-07-31 01:33:51
阅读次数:
154