![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT-Advanced
文章平均质量分 85
dulongxiang
欢迎来讨论问题
展开
-
[C/C++] 1011 World Cup Betting (20)(20 分)
1011 World Cup Betting (20)(20 分)With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing battles for the W...原创 2019-08-02 22:19:15 · 319 阅读 · 0 评论 -
[C/C++] 1058 A+B in Hogwarts (20 分)
1058 A+B in Hogwarts (20 分)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 Sickles to a Galleon an...原创 2019-08-05 14:50:34 · 343 阅读 · 0 评论 -
[C/C++] 1042 Shuffling Machine (20 分)
1042 Shuffling Machine (20 分)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 “inside jobs” where empl...原创 2019-07-28 14:53:31 · 245 阅读 · 0 评论 -
[C/C++] 1046 Shortest Distance (20 分)
1046 Shortest Distance (20 分)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 exits.Input Specific...原创 2019-07-28 17:02:07 · 130 阅读 · 0 评论 -
[C/C++] 1009 Product of Polynomials (25 分)
1009 Product of Polynomials (25 分)This time, you are supposed to find A*B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, a...原创 2019-08-02 15:08:35 · 156 阅读 · 0 评论 -
[C/C++] 1028 List Sorting (25 分)
1028 List Sorting (25 分)Excel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case, the ...原创 2019-08-18 16:13:28 · 157 阅读 · 0 评论 -
[C/C++] 1055 The World's Richest (25 分)
1055 The World’s Richest (25 分)Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world’s wealthiest people. Now you are supposed to simulate this job, b...原创 2019-08-18 20:33:02 · 150 阅读 · 0 评论 -
1083 List Grades (25 分)
1083 List Grades (25 分)Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student reco...原创 2019-08-18 20:59:03 · 134 阅读 · 0 评论 -
[C/C++] 1012 The Best Rank (25 分)
1012 The Best Rank (25 分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Li...原创 2019-08-14 21:38:59 · 199 阅读 · 0 评论 -
[C/C++]1008 Elevator (20 分)
1008 Elevator (20 分)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 elevator will stop, in specified ...原创 2019-08-24 17:05:10 · 220 阅读 · 0 评论 -
[C/C++] 1031 Hello World for U (20 分)
1031 Hello World for U (20 分)Given 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, ...原创 2019-08-04 16:23:16 · 684 阅读 · 0 评论 -
[C/C++] 1002 A+B for Polynomials (25 分)
1002 A+B for Polynomials (25 分)This time, you are supposed to find A+B where A and B are two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and ...原创 2019-07-31 15:56:42 · 195 阅读 · 0 评论 -
[C/C++] 1025 PAT Ranking(25 分)
1025 PAT Ranking(25 分)Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several pla...原创 2018-08-25 19:39:51 · 520 阅读 · 0 评论 -
[C/C++] 1006 Sign In and Sign Out (25)(25 分)
1006 Sign In and Sign Out (25)(25 分)At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the ...原创 2018-08-11 20:57:24 · 597 阅读 · 0 评论 -
[C/C++] 1036 Boys vs Girls (25)(25 分)
1036 Boys vs Girls (25)(25 分)This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification...原创 2018-08-12 09:59:35 · 326 阅读 · 0 评论 -
[C/C++] 1019 General Palindromic Number (20)(20 分)
1019 General Palindromic Number (20)(20 分)A 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 ...原创 2018-08-13 17:36:19 · 180 阅读 · 0 评论 -
[C/C++] 1001 A+B Format (20)(20 分)
1001 A+B Format (20)(20 分)Calculate a + b and output the sum in standard format – that is, the digits must be separated into groups of three by commas (unless there are less than four digits).In...原创 2018-08-23 14:09:35 · 254 阅读 · 0 评论 -
[C/C++] 1005 Spell It Right (20)(20 分)
1005 Spell It Right (20)(20 分)Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each inpu...原创 2018-08-23 14:35:48 · 225 阅读 · 1 评论 -
[C/C++] 1035 Password (20)(20 分)
1035 Password (20)(20 分)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 since it is hard to dist...原创 2018-08-23 20:18:37 · 174 阅读 · 0 评论 -
[C/C++] 1077 Kuchiguse(20 分)
1077 Kuchiguse(20 分)The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker’s personality. Such a...原创 2018-08-24 13:09:45 · 341 阅读 · 0 评论 -
[C/C++] 1082 Read Number in Chinese(25 分)
1082 Read Number in Chinese(25 分)Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output Fu first if it is negative. For example, -123456789 i...原创 2018-08-24 17:22:12 · 529 阅读 · 0 评论 -
[C/C++] 1016 Phone Bills (25 分)
1016 Phone Bills (25 分)A long-distance telephone company charges its customers by the following rules:Making a long-distance call costs a certain amount per minute, depending on the time of day when...原创 2019-08-17 23:45:31 · 245 阅读 · 0 评论