
PAT甲级练习题
ChenHsing22
这个作者很懒,什么都没留下…
展开
-
PAT甲级(Advanced Level)练习题 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, and each line contains the information of a po...原创 2019-03-24 21:20:15 · 241 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 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 order. It costs ...原创 2019-03-23 21:00:50 · 213 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Sign In and Sign Out
题目描述 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 records of signing in’s and out’...原创 2019-03-22 21:06:50 · 210 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Spell It Right
题目描述 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. 输入描述: Each input file contains one test case. Each case occup...原创 2019-03-22 20:39:20 · 174 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Rational Sum
PAT甲级(Advanced Level)练习题 Rational Sum 题目描述 Given N rational numbers in the form “numerator/denominator”, you are supposed to calculate their sum. 输入描述 Each input file contains one test case. Each cas...原创 2019-03-16 22:53:53 · 166 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 List Grades
题目描述 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 records of which the g...原创 2019-03-18 22:22:41 · 147 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 The Dominant Color
题目描述 Behind 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...原创 2019-03-19 20:16:55 · 136 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Colors in Mars
题目描述 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 are for Red, the middle...原创 2019-03-19 20:49:19 · 120 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 List Sorting (25)
题目描述 Excel can sort records according to any column. Now you are supposed to imitate this function. 输入描述: Each input file contains one test case. For each case, the first line contains two integers ...原创 2019-03-19 23:53:45 · 171 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Median (25)
题目描述 Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1={11, 12, 13, 14} is 12, and the median of S2={9, 10, 15, 16, 17} is 1...原创 2019-03-20 00:17:47 · 115 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Password(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 distinguish 1 (one) from...原创 2019-03-20 15:32:25 · 158 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 Boys vs GirlsBoys vs Girls
题目描述 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. 输入描述: Each input file contains one test case. E...原创 2019-03-20 20:57:20 · 136 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 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). 输入描述: Each input file contai...原创 2019-03-20 23:41:34 · 275 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 A+B for 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, and each line contains the information of a po...原创 2019-03-21 21:45:17 · 287 阅读 · 0 评论 -
PAT甲级(Advanced Level)练习题 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 Cup trophy in South Afric...原创 2019-03-27 23:49:15 · 172 阅读 · 0 评论