摘要: Ohana Cleans UpDescriptionOhana Matsumae is trying to clean a room, which is divided up into annbyngrid of squares. Each square is initially either cl... 阅读全文
posted @ 2015-07-18 09:51 枫虹 阅读(292) 评论(0) 推荐(0) 编辑
摘要: Missing number题目:DescriptionThere is a permutation without two numbers in it, and now you know what numbers the permutation has. Please find the two n... 阅读全文
posted @ 2015-07-18 09:33 枫虹 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Number SequenceA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to ca... 阅读全文
posted @ 2015-07-18 09:14 枫虹 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Big Chocolate题目链接:http://acm.hust.edu.cn/vjudge/problem/visitOriginUrl.action?id=19127Big ChocolateMohammad has recently visitedSwitzerland. As he lov... 阅读全文
posted @ 2015-07-18 09:02 枫虹 阅读(150) 评论(0) 推荐(0) 编辑