摘要: The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e 阅读全文
posted @ 2018-06-04 23:52 赖兴宇 阅读(179) 评论(0) 推荐(0)
摘要: 1061 Dating (20)(20 分) Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". 阅读全文
posted @ 2018-06-04 23:13 赖兴宇 阅读(838) 评论(0) 推荐(0)
摘要: Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe 阅读全文
posted @ 2018-06-04 14:52 赖兴宇 阅读(476) 评论(0) 推荐(0)
摘要: A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文
posted @ 2018-06-04 14:30 赖兴宇 阅读(136) 评论(0) 推荐(0)
摘要: People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, wher 阅读全文
posted @ 2018-06-04 00:36 赖兴宇 阅读(132) 评论(0) 推荐(0)
摘要: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文
posted @ 2018-06-04 00:11 赖兴宇 阅读(139) 评论(0) 推荐(0)