摘要: DescriptionWelcome to the Annual Byteland Shooting Contest. Each competitor will shoot to a target which is a rectangular grid. The target consists of r*c squares located in r rows and c columns. The squares are coloured white or black. There are exactly two white squares and r-2 black squares in ea 阅读全文
posted @ 2011-08-10 17:18 kahreman 阅读(223) 评论(0) 推荐(0) 编辑
摘要: DescriptionConsider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that satisfies simultaneously the conditions:every student in the committee represents a differe 阅读全文
posted @ 2011-08-10 16:13 kahreman 阅读(296) 评论(0) 推荐(0) 编辑
摘要: DescriptionConsider a town where all the streets are one-way and each street leads from one intersection to another. It is also known that starting from an intersection and walking through town's streets you can never reach the same intersection i.e. the town's streets form no cycles.With th 阅读全文
posted @ 2011-08-10 15:06 kahreman 阅读(205) 评论(0) 推荐(0) 编辑