
PAT Advance level
随缘上传刷PAT题库的答案
disjkstra is niu be
这个作者很懒,什么都没留下…
展开
-
PAT甲级1065答案(使用C语言)
题目描述Given three integers A, B and C in [−2^63 , 2^63 ], you are supposed to tell whether A+B>C.Input Specification:The first line of the input gives the positive number of test cases, T (≤...原创 2020-02-16 16:02:04 · 323 阅读 · 0 评论 -
PAT甲级1061答案(使用C语言)
题目要求Sherlock Holmes received a note with some strange strings: Let’s date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange st...原创 2020-02-16 10:35:11 · 483 阅读 · 0 评论 -
PAT甲级1058答案(使用C语言)
题目描述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 and twenty-nine Knuts to ...原创 2020-02-15 21:29:08 · 593 阅读 · 0 评论 -
PAT甲级1046答案(使用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 co...原创 2020-02-15 20:37:08 · 317 阅读 · 0 评论 -
PAT甲级1015答案(使用C语言)
题目描述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 because its reverse 37 is also...原创 2020-02-15 20:31:56 · 182 阅读 · 0 评论 -
PAT甲级1019答案(使用C语言)
题目描述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 single digit numbers are palindromic nu...原创 2020-02-14 10:13:50 · 229 阅读 · 0 评论 -
PAT甲级1054答案(使用C语言)
题目描述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 ...原创 2020-02-12 14:51:14 · 227 阅读 · 0 评论 -
PAT甲级A1051答案(使用C语言)
题目描述Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, …, N and pop randomly. You are supposed to tell if a given sequence of numbers is a possible pop sequence o...原创 2020-02-12 11:27:51 · 470 阅读 · 0 评论 -
PAT甲级A1050答案(使用C语言)
题目描述Given two strings S1 and S2, S=S1−S2 is defined to be the remaining string after taking all the characters in S2 from S1 . Your task is simply to calculate S1−S2 for any given strings...原创 2020-02-11 14:05:43 · 185 阅读 · 0 评论 -
PAT甲级A1042答案(使用C语言)
题目描述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 employees collaborate with ga...原创 2020-02-09 22:25:34 · 256 阅读 · 0 评论 -
PAT甲级A1041答案(使用C语言)
题目描述Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,104 ]. The first one wh...原创 2020-02-07 19:43:48 · 296 阅读 · 0 评论 -
PAT甲级A1030答案(使用C语言)
题目描述A traveler’s map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a program to help a traveler to decide the shortest p...原创 2020-02-06 22:58:08 · 164 阅读 · 0 评论 -
PAT甲级A1036答案(使用C语言)
题目描述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:Each input file contains on...原创 2020-02-06 22:24:38 · 287 阅读 · 0 评论 -
PAT甲级A1027答案(使用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 ...原创 2020-02-06 09:50:14 · 207 阅读 · 0 评论 -
PAT甲级A1011答案(使用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 Afric...原创 2020-02-05 14:44:54 · 243 阅读 · 0 评论 -
PAT甲级A1008答案(使用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 ...原创 2020-02-05 13:46:53 · 209 阅读 · 0 评论 -
PAT甲级A1006答案(使用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...原创 2020-02-04 23:17:14 · 261 阅读 · 0 评论 -
PAT甲级1020答案(使用C语言)
PAT甲级1020答案(使用C语言)题目描述:Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order trav...原创 2020-02-02 13:48:53 · 449 阅读 · 0 评论 -
PAT甲级A1005答案(使用C语言)
题目描述: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 contains one test case....原创 2020-02-03 23:56:07 · 315 阅读 · 0 评论