摘要: 1047. Student List for Course (25)时间限制400 ms内存限制64000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueZhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of all the courses.Input Specification 阅读全文
posted @ 2013-09-12 21:27 路萧 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1054. The Dominant Color (20)时间限制100 ms内存限制32000 kB代码长度限制16000 B判题程序StandardBehind 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 with the largest proportional area is called the dominant color. Astri 阅读全文
posted @ 2013-09-12 20:25 路萧 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1059. Prime Factors (25)时间限制50 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者HE, QinmingGiven any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1 * p2^k2 *…*pm^km. Input Specification: Each input file contains one test case which gives a posit 阅读全文
posted @ 2013-09-11 18:32 路萧 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 1023. Have Fun with Numbers (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueNotice 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 246913578, which happens to be another 9-digit number consisting ex 阅读全文
posted @ 2013-09-11 10:44 路萧 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1024. Palindromic Number (25)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic numbers.Non-palindro 阅读全文
posted @ 2013-09-11 10:26 路萧 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1061. Dating (20)时间限制50 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". It took him only a minute to figure out that those strange strings are actua 阅读全文
posted @ 2013-09-08 19:09 路萧 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 1042. Shuffling Machine (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueShuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gamblers by 阅读全文
posted @ 2013-09-08 09:41 路萧 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1037. Magic Coupon (25)时间限制100 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a product, you may get N times the value of that product back! What is more, 阅读全文
posted @ 2013-09-07 16:14 路萧 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 1035. Password (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish 1 (one) from l (L in lowercase), or 0 (ze 阅读全文
posted @ 2013-09-07 15:09 路萧 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1031. Hello World for U (20)时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven any string of N (>=5) characters, you are asked to form the characters into the shape of U. For example, "helloworld" can be printed as:h de ll rlowoThat is, the characters must be printed in the 阅读全文
posted @ 2013-09-07 13:27 路萧 阅读(252) 评论(0) 推荐(0) 编辑