摘要: DescriptionYou all are familiar with the famous 8-queens problem which asks you to place 8 queens on a chess board so no two attack each other. In thi... 阅读全文
posted @ 2014-10-26 13:13 厕所门口~~ 阅读(346) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe rabbits have powerful reproduction ability. One pair of adult rabbits can give birth to one pair of kid rabbits every month. And after ... 阅读全文
posted @ 2014-10-18 17:32 厕所门口~~ 阅读(326) 评论(0) 推荐(0) 编辑
摘要: DescriptionBruce是K国的商人,他在A州成立了自己的公司,这次他的公司生产出了一批性能很好的产品,准备宣传活动开始后的第L天到达B州进行新品拍卖,期间Bruce打算将产品拿到各个州去做推销宣传,以增加其影响力。K国有很多个州,每个州都与其他一些州相邻,但是K国对商人作宣传却有一些很奇怪... 阅读全文
posted @ 2014-10-18 13:37 厕所门口~~ 阅读(307) 评论(0) 推荐(0) 编辑
摘要: ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionA number of students sit in a circle facing their teacher in the center. Each student ini... 阅读全文
posted @ 2014-10-14 21:38 厕所门口~~ 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1sec Memory Limit:32MBDescriptionCylinders (e.g. oil drums) (of radius 1 foot) are stacked in a rectangular bin. Each cylinder on an uppe... 阅读全文
posted @ 2014-10-14 14:42 厕所门口~~ 阅读(375) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiven a triangle ABC, the Extriangles of ABC are constructed as follows:On each side of ABC, construct a square (ABDE, BCHJ and ACFG in the... 阅读全文
posted @ 2014-10-13 12:36 厕所门口~~ 阅读(386) 评论(1) 推荐(0) 编辑
摘要: 一、题目描述在一个8 * 8的棋盘中的某个位置有一只马,如果它走29步正好经过除起点外的其他位置各一次,这样一种走法则称马的周游路线,试设计一个算法,从给定的起点出发,找出它的一条周游路线。为了便于表示一个棋盘,我们按照从上到下,从左到右对棋盘的方格编号,如下所示:1 2 3 4 ... 阅读全文
posted @ 2014-10-12 14:53 厕所门口~~ 阅读(541) 评论(0) 推荐(0) 编辑
摘要: ConstraintsTime Limit: 1 secs, Memory Limit: 32 MBDescriptionLindsay is a shopaholic. Whenever there is a discount of the kind where you can buy three... 阅读全文
posted @ 2014-10-11 20:26 厕所门口~~ 阅读(344) 评论(0) 推荐(0) 编辑
摘要: DescriptionHanoi Tower is a famous game invented by the French mathematician Edourard Lucas in 1883. We are given a tower of n disks, initially stacke... 阅读全文
posted @ 2014-10-11 20:24 厕所门口~~ 阅读(559) 评论(0) 推荐(0) 编辑
摘要: Time Limit: 1sec Memory Limit:32MBDescriptionSeveral surveys indicate that the taller you are, the higher you can climb the corporate ladder. At TALL... 阅读全文
posted @ 2014-10-06 20:45 厕所门口~~ 阅读(321) 评论(0) 推荐(0) 编辑