摘要: Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza a rectan... 阅读全文
posted @ 2017-07-14 19:25 叶梨子 阅读(225) 评论(0) 推荐(0)
摘要: Calculate the number of toys that land in each bin of a partitioned toy box. 计算每一个玩具箱里面玩具的数量Mom and dad have a problem - their child J... 阅读全文
posted @ 2017-07-13 17:13 叶梨子 阅读(168) 评论(0) 推荐(0)
摘要: Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ...shows the first 11... 阅读全文
posted @ 2017-07-12 20:29 叶梨子 阅读(115) 评论(0) 推荐(0)
摘要: 题目描述小明很喜欢下国际象棋,一天,他拿着国际象棋中的“马”时突然想到一个问题:给定两个棋盘上的方格a和b,马从a跳到b最少需要多少步?现请你编程解决这个问题。提示:国际象棋棋盘为8格*8格,马的走子规则为,每步棋先横走或直走一格,然后再往外斜走一格。输入格式输入包含... 阅读全文
posted @ 2017-07-12 16:23 叶梨子 阅读(590) 评论(0) 推荐(0)