摘要: FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= 阅读全文
posted @ 2017-08-02 23:17 天之道,利而不害 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 这是一个简单的生存游戏,你控制一个机器人从一个棋盘的起始点(1,1)走到棋盘的终点(n,m)。游戏的规则描述如下: 1.机器人一开始在棋盘的起始点并有起始点所标有的能量。 2.机器人只能向右或者向下走,并且每走一步消耗一单位能量。 3.机器人不能在原地停留。 4.当机器人选择了一条可行路径后,当他走 阅读全文
posted @ 2017-08-02 23:15 天之道,利而不害 阅读(246) 评论(0) 推荐(0) 编辑
摘要: A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24 阅读全文
posted @ 2017-08-02 23:07 天之道,利而不害 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the ho 阅读全文
posted @ 2017-08-02 16:27 天之道,利而不害 阅读(216) 评论(0) 推荐(0) 编辑