上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 65 下一页
摘要: 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-09-05 03:11 GetcharZp 阅读(142) 评论(0) 推荐(0) 编辑
摘要: Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins 阅读全文
posted @ 2018-09-05 01:42 GetcharZp 阅读(160) 评论(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-09-05 01:14 GetcharZp 阅读(167) 评论(0) 推荐(0) 编辑
摘要: To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords 阅读全文
posted @ 2018-09-05 00:58 GetcharZp 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​. Your task 阅读全文
posted @ 2018-09-05 00:33 GetcharZp 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color 阅读全文
posted @ 2018-09-05 00:24 GetcharZp 阅读(138) 评论(0) 推荐(0) 编辑
摘要: If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver 阅读全文
posted @ 2018-09-05 00:11 GetcharZp 阅读(116) 评论(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-09-04 10:07 GetcharZp 阅读(152) 评论(0) 推荐(0) 编辑
摘要: Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 2469135 阅读全文
posted @ 2018-09-04 09:36 GetcharZp 阅读(183) 评论(0) 推荐(0) 编辑
摘要: "Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of th 阅读全文
posted @ 2018-09-04 00:17 GetcharZp 阅读(140) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 65 下一页