摘要: Description我们知道,在编程中,我们时常需要考虑到时间复杂度,特别是对于循环的部分。例如,如果代码中出现for(i=1;iint c[2001][2001];void init(){int n, m;c[0][0] = 1;for(n = 1; n <= 2000; n++){ c[n][... 阅读全文
posted @ 2015-07-31 20:59 简约。 阅读(88) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular... 阅读全文
posted @ 2015-07-31 20:49 简约。 阅读(133) 评论(0) 推荐(0) 编辑
摘要: DescriptionA ring is composed of n (even number) circles as shown in diagram. Put natural numbersinto each circle separately, and the sum of numbers i... 阅读全文
posted @ 2015-07-31 20:13 简约。 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k,用一个空... 阅读全文
posted @ 2015-07-31 19:38 简约。 阅读(205) 评论(0) 推荐(0) 编辑
摘要: DescriptionThere is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum... 阅读全文
posted @ 2015-07-31 19:22 简约。 阅读(146) 评论(0) 推荐(0) 编辑
摘要: DescriptionExamine thecheckerboard below and note that the six checkers are arranged on the board so that one and only one is placed in each row and e... 阅读全文
posted @ 2015-07-31 19:14 简约。 阅读(124) 评论(0) 推荐(0) 编辑
摘要: DescriptionAndrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings containing zeros and ones.Once he thoug... 阅读全文
posted @ 2015-07-31 18:57 简约。 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of the maximum positive product involving consecutive te... 阅读全文
posted @ 2015-07-30 09:37 简约。 阅读(183) 评论(0) 推荐(0) 编辑
摘要: DescriptionWrite a program that finds and displays all pairs of 5-digit numbers that between them use the digits0through9once each, such that the firs... 阅读全文
posted @ 2015-07-29 18:53 简约。 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Mohammad has recently visited Switzerland. As he loves his friends very much, he decided to buy some chocolate for them, but as this fine chocolate is... 阅读全文
posted @ 2015-07-26 20:39 简约。 阅读(100) 评论(0) 推荐(0) 编辑