摘要: 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) 编辑