摘要: Change language :Manasa 和 她的朋友出去徒步旅行。她发现一条小河里边顺序排列着带有数值的石头。她开始沿河而走,发现相邻两个石头上的数值增加 a 或者 b. 这条小河的尽头有一个宝藏,如果Manasa能够猜出来最后一颗石头上的数值,那么宝藏就是她的。假设第一个石头的上数值为0,... 阅读全文
posted @ 2014-07-29 18:00 SunshineAtNoon 阅读(340) 评论(0) 推荐(0) 编辑
摘要: Little Bob loves chocolates, and goes to the store with $N money in his pocket. The price of each chocolate is $C. The store offers a discount: for ev... 阅读全文
posted @ 2014-07-29 16:50 SunshineAtNoon 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 给定两个整数:L 和 R∀ L ≤ A ≤ B ≤ R, 找出 A xor B 的最大值。输入格式第一行包含 L 第一行包含 R数据范围1 ≤ L ≤ R ≤ 103输出格式输出最大的异或和题解: 1 import java.io.*; 2 import java.util.*; 3 import ... 阅读全文
posted @ 2014-07-29 16:32 SunshineAtNoon 阅读(308) 评论(0) 推荐(0) 编辑
摘要: King Robert has 7 kingdoms under his rule. He gets to know from a raven that the Dothraki are going to wage a war against him soon. But, he knows the ... 阅读全文
posted @ 2014-07-29 15:56 SunshineAtNoon 阅读(361) 评论(0) 推荐(0) 编辑
摘要: Change language :Alex is attending a Halloween party with his girlfriend Silvia. At the party, Silvia spots a giant chocolate bar. If the chocolate ca... 阅读全文
posted @ 2014-07-29 15:39 SunshineAtNoon 阅读(471) 评论(0) 推荐(0) 编辑
摘要: James找到了他的朋友Harry要给女朋友的情书。James很爱恶作剧,所以他决定要胡搞一下。他把信中的每个单字都变成了回文。对任何给定的字符串,他可以减少其中任何一个字符的值,例如'd'可以变成'c',这算是一次操作。(另外,他最多只能将字符的值减少至'a','a'不能再被减少成'z')。找出将... 阅读全文
posted @ 2014-07-29 15:19 SunshineAtNoon 阅读(421) 评论(0) 推荐(0) 编辑
摘要: Gem StonesJohn has discovered various rocks. Each rock is composed of various elements, and each element is represented by a lowercase latin letter fr... 阅读全文
posted @ 2014-07-29 10:33 SunshineAtNoon 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Calvin is driving his favorite vehicle on the 101 freeway. He notices that the check engine light of his vehicle is on, and he wants to service it imm... 阅读全文
posted @ 2014-07-29 10:13 SunshineAtNoon 阅读(323) 评论(0) 推荐(0) 编辑