题目链接:
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5122
ZOJ Problem Set - 3740
Water Level
Time Limit: 2 Seconds Memory Limit: 65536 KB
Hangzhou is a beauti...
分类:
其他好文 时间:
2014-05-10 10:12:56
阅读次数:
432
链接:http://poj.org/problem?id=1789 或 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=1158
Description
Advanced Cargo Movement, Ltd. uses trucks of different types. Some trucks are use...
分类:
其他好文 时间:
2014-05-10 09:39:59
阅读次数:
440
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=586
In the planet w-503 of galaxy cgb, there is a kind of intelligent creature named QS. QScommunicate with each other via networks. If...
分类:
Web程序 时间:
2014-05-10 09:38:02
阅读次数:
537
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=203
Description:
We all remember that in the movie Swordfish, Gabriel broke into the World Bank Investors Group in West Los Angeles, to...
分类:
其他好文 时间:
2014-05-10 09:11:52
阅读次数:
343
先澄清几个误区
1、CharSequence 不是 Char :有些小朋友根据参数的类型选择Replace或ReplaceAll方法
2、Replace 和 ReplaceAll :并不是有些小朋友想象的Replace只替代一个出现的字符,ReplaceAll 替换所有字符
3、循环替换的误区
String eventJson = ".............";
Iterator<Entry> itPro = map.entrySet().iterator();
...
分类:
其他好文 时间:
2014-05-10 08:39:17
阅读次数:
257
好,这篇我们来讲解无限循环滚动背景,这个知识已经被讲到烂了,我以前的文章也介绍过,所以就不那么详细地说明了。
笨木头花心贡献,啥?花心?不呢,是用心~
为什么是循环滚动背景?
用循环滚动背景,其实是因为我想偷懒,因为这样我只需要准备一张图片就可以了。
我们最终要创建这样的背景,如图:
为什么是循环滚动背景?
用循环滚动背景,其实是因为我想偷懒,因为这...
分类:
其他好文 时间:
2014-05-10 08:38:44
阅读次数:
469
block对于其变量都会形成strong reference,对于self也会形成strong
reference ,而如果self本身对block也是 strong reference 的话,就会形成 strong reference
循环,造成内存泄露,为了防止这种情况发生,在block外部应该...
分类:
其他好文 时间:
2014-05-07 19:27:49
阅读次数:
288
unsigned int i =10;for(i;i > 0; i--)
{xxxxx}因为i是unsigned int 类型的,永远不可能小于0,也就是说是个死循环了。
分类:
其他好文 时间:
2014-05-07 10:26:55
阅读次数:
273
SQL Server遍历表一般都要用到游标,SQL
Server中可以很容易的用游标实现循环,实现SQL Server遍历表中记录。但游标在实际的开发中都不推荐使用。我们知道还可以借助临时表或表变量等来实现SQL
Server遍历表下例为用表变量来实现简单的循环:(直接复制到查询分析器中运行即可)1...
分类:
数据库 时间:
2014-05-06 14:15:30
阅读次数:
358
1题目:给定K个整数的序列{ N1, N2, ..., NK },其任意连续子序列可表示为{
Ni, Ni+1, ..., Nj },其中 1 int main(){ int n, a[10001], left, beforeleft, right,
i, max, sum; while...
分类:
其他好文 时间:
2014-05-06 13:18:27
阅读次数:
366