码迷,mamicode.com
首页 >  
搜索关键字:water    ( 3290个结果
leetcode 【 Trapping Rain Water 】python 实现
题目: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...
分类:移动开发   时间:2015-01-27 00:08:51    阅读次数:185
poj3185--The Water Bowls(高斯消元问题3)
The Water Bowls Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 4623   Accepted: 1812 Description The cows have a line of 20 water bowls from which they drink....
分类:其他好文   时间:2015-01-26 17:20:44    阅读次数:134
hdu4009---Transfer water
Transfer water Time Limit: 5000/3000 MS (Java/Others)    Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 3964    Accepted Submission(s): 1424 Problem Description XiaoA lives in ...
分类:其他好文   时间:2015-01-26 17:08:33    阅读次数:228
[Gauss]POJ3185 The Water Bowls
题意:反正就是要给的一串01的变成全0 能影响自己和左右 最少需要几步01方程组 异或解 1 int a[300][300]; // 增广矩阵 2 int x[300]; // 解 3 int free_x[300]; // 标记是否为自由未知量 4 5 int n; 6 void...
分类:其他好文   时间:2015-01-25 15:01:32    阅读次数:210
Leetcode#42 Trapping Rain Water
原题地址不妨手动模拟一下,观察是否有规律可寻。假设从位置0开始,我们有一个矩形条向右扩展,我们遇到了第二个矩形条,假设这个矩形条比第一个矮:我们继续向右扩展,直到遇到比第一个矩形条高(或者相等)的矩形条:那么显然,蓝色的部分就是装水的部分,把这部分累加到最终的结果中然后,以新发现的这个矩形条为左边界...
分类:移动开发   时间:2015-01-24 15:49:23    阅读次数:207
[LeetCode]11.Container With Most Water
【题目】 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 endpoints of line i is at (i, ai) and (i,...
分类:其他好文   时间:2015-01-21 16:37:56    阅读次数:159
POJ 2386
题目: Lake Counting Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 21515   Accepted: 10831 Description Due to recent rains, water has pooled in various...
分类:其他好文   时间:2015-01-20 18:02:17    阅读次数:168
Trapping Rain Water -- leetcode
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 raining. For example,  Given [0,1,0,2,1,0,1,3,2,1,2,1]...
分类:移动开发   时间:2015-01-18 17:12:30    阅读次数:165
php 图片处理
//合成图片(加水印) function img_water_mark($srcImg, $waterImg, $savename, $savepath='public/images/wxqrcode', $positon=3, $alpha=100) { //$savename=time().'.jpg'; $temp = pathinfo($srcImg); ...
分类:Web程序   时间:2015-01-17 16:34:36    阅读次数:291
LCD1602小程序
1显示数据typedef struct { unsigned long int mL_data; unsigned long int L_data; unsigned long int M3_data;}water_date;extern water_date water_data1;2数据处...
分类:其他好文   时间:2015-01-16 12:57:11    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!