码迷,mamicode.com
首页 >  
搜索关键字:water    ( 3290个结果
关于Cocos2d-x的粒子系统
1.cocos2d-x有一些自带的粒子效果,以后可以用到。当然,也可以自己定义一些粒子,不过要定义的话,虽然可以用cpp文件自己写,但是没有可视化的调节,还要设定各种奇怪的参数,是非常困难的。可以用一些软件来另外设计粒子效果,保存为plist的文件,再引入到游戏中。 auto water=Parti ...
分类:其他好文   时间:2016-05-31 20:45:59    阅读次数:177
Trapping Rain Water
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. ...
分类:移动开发   时间:2016-05-29 22:59:45    阅读次数:203
poj 2386 Lake Counting(dfs)
Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 28220 Accepted: 14160 Description Due to recent rains, water has pooled in va ...
分类:其他好文   时间:2016-05-29 18:13:12    阅读次数:207
注意资源利用 不然导致资源消耗会很严重
for(Shop s:list) { System.out.println(s.getName()); String sql="select shopId,sum(ele_bank+ele_card+water_card+water_bank+coal_card+coal_bank) as zong ...
分类:其他好文   时间:2016-05-28 14:18:31    阅读次数:156
HDU 4009 Transfer water
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4009 题意:给出一个村庄(x,y,z)。每个村庄可以挖井或者修建水渠从其他村庄得到水。挖井有一个代价,修水渠有一个代价。另外A村庄只能向其指定的一些村庄供水。使得所有村庄有水求最小代价。 思路,建立源节 ...
分类:其他好文   时间:2016-05-27 20:16:01    阅读次数:221
【Leetcode】Container With Most Water
题目链接:https://leetcode.com/problems/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 dra...
分类:其他好文   时间:2016-05-27 11:53:57    阅读次数:172
【Leetcode】Trapping Rain Water
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]...
分类:移动开发   时间:2016-05-27 11:27:02    阅读次数:128
Leetcode 200. Number of Islands
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-05-20 23:54:13    阅读次数:151
9更令人兴奋的WebGL演示
Firefox OS,asm。js和推动浏览器性能改进,画布和WebGL技术是打开一个世界的可能性。我上9令人兴奋的帆布演示,然后把它与9 WebGL演示,但我想超越这篇文章。我发现9个更多的精神WebGL演示,你不该小姐享受吧! 1.WebGL Water这个令人难以置信的演示液体如你可以相信。提 ...
分类:Web程序   时间:2016-05-16 17:21:29    阅读次数:313
leetcode 之trap water(8)
这题不太好想。可以先扫描找到最高的柱子,然后分别处理两边。 int trapWater(int A[], int n) { int peak = 0; int max = 0; int water = 0; for (int i = 1; i < n; i++) { if (A[i]>A[max]) ...
分类:其他好文   时间:2016-05-15 21:18:27    阅读次数:161
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!