Description
On a m*m land stationed n troops, numbered from 1 to n. The i-th troop's position can be described by two numbers (xi,yi) (1
Then there are t minutes, in each minute one of the followi...
分类:
其他好文 时间:
2014-07-28 16:25:13
阅读次数:
356
Description
Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance.
It orders two arms of negligible weight and each arm's length...
分类:
其他好文 时间:
2014-07-28 16:14:46
阅读次数:
244
Problem Description
A project manager wants to determine the number of the workers needed in every month. He does know the minimal number of the workers needed in each month. When he hires or fires...
分类:
其他好文 时间:
2014-07-28 15:44:23
阅读次数:
284
DescriptionFor each prefix with length P of a given string S,ifS[i]=S[i+P] for i in [0..SIZE(S)-p-1],then the prefix is a “period” of S. We want to al...
分类:
其他好文 时间:
2014-07-28 15:30:03
阅读次数:
330
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma....
分类:
编程语言 时间:
2014-07-28 11:34:40
阅读次数:
210
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma....
分类:
编程语言 时间:
2014-07-28 11:33:50
阅读次数:
278
Descriptionnfish, numbered from1ton, live in a lake. Every day right one pair of fish meet, and the probability of each other pair meeting is the same...
分类:
其他好文 时间:
2014-07-28 11:30:30
阅读次数:
367
和上次的一样,只是总结下看这本书学习到的新观点或者重点,简单并且提高效率。
第四章 控制执行流程
1.java中不允许一个数字当做布尔值来使用,而在C或者C++中可以
2.java中唯一用到逗号的地方就是for循环的控制表达式
3.for循环可以定义多个变量,但是这些变量必须要有相投的类型
4.要熟练使用for--each循环
5.break退出整个循环,continue退出当前循环
6.switch的case后面一定要跟上break'语句(有一次出bug就是因为粗心没有加上break)...
分类:
编程语言 时间:
2014-07-28 00:23:09
阅读次数:
191
Beautiful People
Time Limit: 5 Seconds
Memory Limit: 32768 KB Special Judge
The most prestigious sports club in one city has exactly N members. Each of its members is strong and bea...
分类:
其他好文 时间:
2014-07-28 00:09:59
阅读次数:
413
Problem Description
FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q < n. At e...
分类:
其他好文 时间:
2014-07-28 00:02:49
阅读次数:
319