
PAT甲级
threeh20
暑假有半个月整个人像死了一样,所以更加明白生命的可贵
展开
-
PAT甲级1001 A+B Format(模拟)
1001 A+B Format (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).Input Spe...原创 2019-02-16 15:47:53 · 125 阅读 · 0 评论 -
PAT甲级1100 Mars Numbers(模拟)
1100 Mars Numbers (20 分)People on Mars count their numbers with base 13:Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, may, jun, jly, aug, sep...原创 2019-02-18 19:39:26 · 166 阅读 · 0 评论 -
PAT甲级1084 Broken Keyboard(简单题)
1084 Broken Keyboard (20 分)On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given a st...原创 2019-02-18 19:36:18 · 209 阅读 · 0 评论 -
PAT甲级1077 Kuchiguse(简单字符串比较)
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 ...原创 2019-02-18 19:34:46 · 168 阅读 · 0 评论 -
PAT甲级1069 The Black Hole of Numbers(简单模拟)
1069 The Black Hole of Numbers (20 分)For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order...原创 2019-02-18 19:32:43 · 132 阅读 · 0 评论 -
PAT甲级1017 Queueing at Bank(简单模拟)
1017 Queueing at Bank (25 分)Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customers have to wai...原创 2019-02-18 19:30:47 · 235 阅读 · 0 评论 -
PAT甲级1015 Reversible Primes(简单模拟)
1015 Reversible Primes (20 分)A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime beca...原创 2019-02-18 19:27:28 · 175 阅读 · 0 评论 -
PAT甲级1013 Battle Over Cities(简单图论)
1013 Battle Over Cities (25 分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We...原创 2019-02-18 19:24:25 · 159 阅读 · 0 评论 -
PAT甲级1012 The Best Rank(结构体排序)
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 L...原创 2019-02-16 16:12:17 · 226 阅读 · 0 评论 -
PAT甲级1011 World Cup Betting(简单题)
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...原创 2019-02-16 16:10:37 · 363 阅读 · 0 评论 -
PAT甲级1010 Radix(模拟)
1010 Radix (25 分)Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number.Now for any pa...原创 2019-02-16 16:09:16 · 135 阅读 · 0 评论 -
PAT甲级1009 Product of Polynomials(数组循环)
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...原创 2019-02-16 16:01:47 · 120 阅读 · 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-16 15:59:57 · 281 阅读 · 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-16 15:58:44 · 189 阅读 · 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-16 15:53:49 · 151 阅读 · 0 评论 -
PAT甲级1005 Spell It Right(模拟)
1005 Spell It Right (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...原创 2019-02-16 15:51:16 · 136 阅读 · 0 评论 -
PAT甲级1002 A+B for Polynomials(简单数组循环)
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, a...原创 2019-02-16 15:49:28 · 125 阅读 · 0 评论 -
PAT甲级1016 Phone Bills(排序+模拟)
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 wh...原创 2019-02-18 19:42:20 · 384 阅读 · 0 评论