
PAT (Advanced Level)
文章平均质量分 76
PAT甲级题目
YUqiongqlm_
最好的时间是一年前,其次是现在
展开
-
A1027 Colors in Mars (20 分)_C语言_进制转换_题意+解析
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 2 digits for Green, and the last 2 digits for Blue. The only原创 2021-02-04 18:07:18 · 167 阅读 · 0 评论 -
A1054 The Dominant Color (20 分)_C语言_STL_题目解析
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 the dominant color. A strictly dominant color takes more than原创 2021-02-03 18:06:49 · 139 阅读 · 0 评论 -
A1011 World Cup Betting (20分)_C语言_翻译+解析
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 Africa. Similarly, football betting fans were putting their money原创 2021-01-30 22:03:22 · 251 阅读 · 0 评论 -
A1008 Elevator (20分)_C语言_翻译+解析
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 6 seconds to move the elevator up one floor, and 4 seconds to原创 2021-01-29 12:12:49 · 215 阅读 · 0 评论 -
A1006 Sign In and Sign Out (25分)_C语言
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’s, you are supposed to find the ones who have unlocked and loc原创 2021-01-28 17:21:24 · 154 阅读 · 0 评论 -
A1056 Mice and Rice (25分)_C语言_队列的应用
Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice as possible in order to become a FatMouse.First the pl原创 2021-01-25 11:20:23 · 135 阅读 · 0 评论 -
A1002 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 each line contains the information of a polynomial:K N1 aN1 N2 aN2 …原创 2020-10-05 16:56:53 · 136 阅读 · 0 评论 -
A1065 A+B and C (64bit) (20分)
题意给出三个整数A,B,C;如果A+B>C,则输出true;否则,输出false.Input Specification:The first line of the input gives the positive number of test cases, T ( ≤ 10 ) T(\le10) T(≤10). Then T test cases follow, each consists of a single line containing three integers A A A, B原创 2020-10-05 14:59:42 · 190 阅读 · 0 评论 -
A1046 Shortest Distance (20分)_C语言_这个坑你注意到没有?
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 Specification:Each input file contains one test case. For each case, the first line contains原创 2020-10-01 17:58:39 · 253 阅读 · 0 评论