摘要: Problem DescriptionIgnatius花了一个星期的时间终于找到了传说中的宝藏,宝藏被放在一个房间里,房间的门用密码锁起来了,在门旁边的墙上有一些关于密码的提示信息:密码是一个C进制的数,并且只能由给定的M个数字构成,同时密码是一个给定十进制整数N(0 2 # include 3 #... 阅读全文
posted @ 2015-08-16 15:57 20143605 阅读(225) 评论(0) 推荐(0) 编辑
摘要: DescriptionYou are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i ... 阅读全文
posted @ 2015-08-16 15:43 20143605 阅读(196) 评论(0) 推荐(0) 编辑
摘要: DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks... 阅读全文
posted @ 2015-08-16 15:40 20143605 阅读(144) 评论(0) 推荐(0) 编辑
摘要: DescriptionWhen a radio station is broadcasting over a very large area, repeaters are used to retransmit the signal so that every receiver has a stron... 阅读全文
posted @ 2015-08-16 15:33 20143605 阅读(190) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-... 阅读全文
posted @ 2015-08-16 15:23 20143605 阅读(177) 评论(0) 推荐(0) 编辑