PAT甲级
刘小花Crystal
刚刚起步的菜鸟
展开
-
【PAT 甲级】1001 A+B Format
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).InputEa...原创 2018-07-11 18:42:17 · 175 阅读 · 0 评论 -
【PAT 甲级】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. OutputFufirst if it is negative. For example, -123456789 ...原创 2019-07-14 01:58:39 · 793 阅读 · 0 评论 -
【PAT 甲级】1025 PAT Ranking
1025 PAT Ranking题目描述: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 ...原创 2019-07-10 21:33:36 · 155 阅读 · 0 评论 -
【PAT 甲级】1042 Shuffling Machine (20)
A1042.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" whe...原创 2019-07-10 23:12:14 · 157 阅读 · 0 评论 -
【PAT 甲级】1046 Shortest Distance (20)
A1046 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.输入描...原创 2019-07-10 23:41:55 · 154 阅读 · 0 评论 -
【PAT 甲级】1065 A+B and C (64bit) (20)
A1065. A+B and C (64bit) (20)题目描述Given three integers A, B and C in [-263, 263), you are supposed to tell whether A+B > C.输入描述:The first line of the input gives the positive number ...原创 2019-07-11 15:54:40 · 164 阅读 · 0 评论 -
【PAT 甲级】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.输入描述:Each input file contains one test case. Each case occupies 2 lines, a...原创 2019-07-11 19:28:57 · 146 阅读 · 0 评论 -
【PAT 甲级】1011 World Cup Betting (20)
1011 World Cup Betting (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 World C...原创 2019-07-11 21:08:07 · 160 阅读 · 0 评论 -
【PAT 甲级】1036 Boys vs Girls (25 分)
1036Boys vs Girls(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:Eac...原创 2019-07-11 21:56:02 · 165 阅读 · 0 评论 -
【PAT 甲级】1077 Kuchiguse (20 分)
1077Kuchiguse(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 ...原创 2019-07-13 01:06:29 · 256 阅读 · 0 评论 -
【PAT 甲级】1035 Password (20 分)
1035Password(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 distingu...原创 2019-07-12 20:43:22 · 174 阅读 · 0 评论 -
【PAT 甲级】1005 Spell It Right
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 input file c...原创 2018-07-14 09:04:48 · 288 阅读 · 0 评论 -
【PAT 甲级】1007 Maximum Subsequence Sum
1007 Maximum Subsequence Sum (25 分)Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1≤i≤j≤K. The Maximum Su...原创 2019-02-01 13:47:23 · 279 阅读 · 0 评论 -
【PAT 甲级】1006 Sign In and Sign Out
1006 Sign In and Sign Out (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 reco...原创 2019-02-01 16:39:24 · 279 阅读 · 0 评论 -
【PAT 甲级】1008 Elevator
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-02-02 20:12:51 · 179 阅读 · 0 评论 -
【PAT 甲级】1002 A+B for Polynomials
1002A+B for Polynomials(25 分)This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, a...原创 2019-02-02 21:36:51 · 192 阅读 · 0 评论 -
【PAT 甲级】1019 General Palindromic Number (20 分)
1019 General Palindromic Number (20 分)A number that will be the same when it is written forwards or backwards is known as aPalindromic Number. For example, 1234321 is a palindromic number. All sing...原创 2019-07-12 18:40:45 · 169 阅读 · 0 评论 -
【PAT 甲级】1027 Colors in Mars (20 分)
1027Colors in Mars(20分)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, where the first 2 digits a...原创 2019-07-12 19:41:47 · 165 阅读 · 0 评论 -
【PAT 甲级】1058 A+B in Hogwarts (20 分)
1058A+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 ...原创 2019-07-12 20:04:46 · 176 阅读 · 0 评论 -
【PAT 甲级】1031 Hello World for U (20 分)
1031Hello World for U(20分)Given any string ofN(≥5) characters, you are asked to form the characters into the shape ofU. For example,helloworldcan be printed as:h de ll rlowoThat ...原创 2019-07-11 22:53:21 · 203 阅读 · 0 评论