摘要: In Zhejiang University, there is a famous BBS named Freecity. Usually we call it 88. Recently some students at the Humour board on 88 create a new gam 阅读全文
posted @ 2017-03-10 21:09 琴影 阅读(281) 评论(0) 推荐(0) 编辑
摘要: Superbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hackers have org 阅读全文
posted @ 2017-03-10 20:33 琴影 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Bill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortunately, Bill ha 阅读全文
posted @ 2017-03-10 20:08 琴影 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Roy has just moved into a new apartment.Well, actually the apartment itself is not very new, even dating back to the days before people had electricit 阅读全文
posted @ 2017-03-10 19:55 琴影 阅读(229) 评论(0) 推荐(0) 编辑
摘要: Given a list of monetary amounts in a standard format, please calculate the total amount. We define the format as follows: 1. The amount starts with ' 阅读全文
posted @ 2017-03-10 18:08 琴影 阅读(222) 评论(0) 推荐(0) 编辑
摘要: J.P. Flathead's Grocery Store hires cheap labor to man the checkout stations. The people he hires (usually high school kids) often make mistakes makin 阅读全文
posted @ 2017-03-10 16:41 琴影 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Zombies love to eat brains. Yum. Input The first line contains a single integer n indicating the number of data sets. The following n lines each repre 阅读全文
posted @ 2017-03-10 16:11 琴影 阅读(223) 评论(0) 推荐(0) 编辑
摘要: Given a list of phone numbers, determine if it is consistent in the sense that no number is the prefix of another. Let's say the phone catalogue liste 阅读全文
posted @ 2017-03-10 15:54 琴影 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Mike is very lucky, as he has two beautiful numbers, 3 and 5. But he is so greedy that he wants infinite beautiful numbers. So he declares that any po 阅读全文
posted @ 2017-03-10 15:30 琴影 阅读(246) 评论(0) 推荐(0) 编辑
摘要: Prime Number Definition An integer greater than one is called a prime number if its only positive divisors (factors) are one and itself. For instance, 阅读全文
posted @ 2017-03-10 15:19 琴影 阅读(285) 评论(0) 推荐(0) 编辑
摘要: In recreational mathematics, a magic square of n-degree is an arrangement of n2 numbers, distinct integers, in a square, such that the n numbers in al 阅读全文
posted @ 2017-03-10 13:39 琴影 阅读(453) 评论(0) 推荐(0) 编辑
摘要: Given positive integers B and N, find an integer A such that AN is as close as possible to B. (The result A is an approximation to the Nth root of B.) 阅读全文
posted @ 2017-03-10 11:53 琴影 阅读(256) 评论(0) 推荐(0) 编辑
摘要: A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome becau 阅读全文
posted @ 2017-03-10 11:24 琴影 阅读(169) 评论(0) 推荐(0) 编辑
摘要: We all know that FatMouse doesn't speak English. But now he has to be prepared since our nation will join WTO soon. Thanks to Turing we have computers 阅读全文
posted @ 2017-03-10 10:46 琴影 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something happens to this process 阅读全文
posted @ 2017-03-10 10:12 琴影 阅读(307) 评论(0) 推荐(0) 编辑
摘要: Our school is planning to hold a new exciting computer programming contest. During each round of the contest, the competitors will be paired, and comp 阅读全文
posted @ 2017-03-10 09:54 琴影 阅读(380) 评论(0) 推荐(0) 编辑