上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: Problem DescriptionIn the army, a platoon is composed by n soldiers. During the morning inspection, the soldiers are aligned in a straight line in front of the captain. The captain is not satisfied with the way his soldiers are aligned; it is true that the soldiers are aligned in order by their code 阅读全文
posted @ 2013-08-05 17:03 秋心无波 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1225. FlagsTime limit: 1.0 second Memory limit: 64 MBOn the Day of the Flag of Russia a shop-owner decided to decorate the show-window of his shop with textile stripes of white, blue and red colors. He wants to satisfy the following conditions:1.Stripes of the same color cannot be placed next to eac 阅读全文
posted @ 2013-08-05 09:48 秋心无波 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Let’s considerK-based numbers, containing exactlyNdigits. We define a number to be valid if itsK-based notation doesn’t contain two successive zeros. For example:1010230 is a valid 7-digit number;1000198 is not a valid number;0001235 is not a 7-digit number, it is a 4-digit number.Given two numbersN 阅读全文
posted @ 2013-08-04 16:58 秋心无波 阅读(225) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionA Bank plans to install a machine for cash withdrawal. The machine is able to deliver appropriate @ bills for a requested cash amount. The machine uses exactly N distinct bill denominations, say Dk, k=1,N, and for each denomination Dk the machine has a supply of nk bills. For exam 阅读全文
posted @ 2013-08-03 11:07 秋心无波 阅读(297) 评论(0) 推荐(0) 编辑
摘要: DescriptionJohnny has a younger sister Anne, who is very clever and smart. As she came home from the kindergarten, she told his brother about the task that her kindergartener asked her to solve. The task was just to construct a triangle out of four sticks of different colours. Naturally, one of the 阅读全文
posted @ 2013-08-02 21:04 秋心无波 阅读(312) 评论(0) 推荐(0) 编辑
摘要: DescriptionPeter decided to wish happy birthday to his friend from Australia and send him a card. To make his present more mysterious, he decided to make achain. Chain here is such a sequence of envelopesA = {a1, a2, ..., an}, where the width and the height of thei-th envelope is strictly higher ... 阅读全文
posted @ 2013-08-02 21:03 秋心无波 阅读(389) 评论(0) 推荐(0) 编辑
摘要: DescriptionA new e-mail service "Berlandesk" is going to be opened in Berland in the near future. The site administration wants to launch their project as soon as possible, that's why they ask you to help. You're suggested to implement the prototype of site registration system. The 阅读全文
posted @ 2013-08-02 20:38 秋心无波 阅读(305) 评论(0) 推荐(0) 编辑
摘要: DescriptionTomorrow Peter has a Biology exam. He does not like this subject much, butddays ago he learnt that he would have to take this exam. Peter's strict parents made him prepare for the exam immediately, for this purpose he has to study not less thanminTimeiand not more thanmaxTimeihours pe 阅读全文
posted @ 2013-08-02 20:35 秋心无波 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionGigel 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 is 15. Some hooks are attached to these arms and Gigel wants to hang up some weigh 阅读全文
posted @ 2013-08-02 08:36 秋心无波 阅读(429) 评论(0) 推荐(0) 编辑
摘要: Problem DescriptionA robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions areN north (up the page) S south (down the page) E east (to the right on the page) W west (to the left on 阅读全文
posted @ 2013-08-01 13:20 秋心无波 阅读(205) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页