上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 40 下一页
摘要: 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) 编辑
摘要: 调了好久,orz 题解:以从大到小的顺序,先把大的翻到最上面,然后再翻回它应该在的位置(即从小到大的排序中的位置),不懂的话拿笔模拟这个过程就明白了。 注意读入的方法!!!坑了好久 阅读全文
posted @ 2017-08-01 09:41 天之道,利而不害 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 好难得调试!!!!!! 正解: 枚举a串的长度,然后在枚举的串尾添加一个字符使满足大小关系. 阅读全文
posted @ 2017-07-31 17:16 天之道,利而不害 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 The little girl loves the problems on array queries very much. One day she came across a rather well-known problem: you've got an array of n el 阅读全文
posted @ 2017-07-30 23:40 天之道,利而不害 阅读(627) 评论(0) 推荐(0) 编辑
摘要: You are fishing with polar bears Alice and Bob. While waiting for the fish to bite, the polar bears get bored. They come up with a game. First Alice a 阅读全文
posted @ 2017-07-30 22:25 天之道,利而不害 阅读(196) 评论(0) 推荐(0) 编辑
摘要: There is a straight snowy road, divided into n blocks. The blocks are numbered from 1 to n from left to right. If one moves from the i-th block to the 阅读全文
posted @ 2017-07-29 23:55 天之道,利而不害 阅读(367) 评论(0) 推荐(0) 编辑
摘要: Petya loves lucky numbers. Everybody knows that positive integers are lucky if their decimal representation doesn't contain digits other than 4 and 7. 阅读全文
posted @ 2017-07-29 23:52 天之道,利而不害 阅读(668) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 40 下一页