
PAT甲级
喜欢ctrl的cxk
跪求大佬们别DDOS tanyaodan. com
展开
-
【PAT甲级】 A+B Format
Problem Description:Calculatea+band 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 Speci...原创 2019-03-02 21:43:12 · 1271 阅读 · 0 评论 -
【PAT甲级】Friend Numbers
Problem Description:Two integers are called "friend numbers" if they share the same sum of their digits, and the sum is their "friend ID". For example, 123 and 51 are friend numbers since 1+2+3 = 5+...原创 2019-04-22 14:41:25 · 224 阅读 · 0 评论 -
【PAT甲级】Linked List Sorting
Problem Description:A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integerkeyand aNextpointer to the ne...原创 2019-04-22 15:29:22 · 847 阅读 · 0 评论 -
【PAT甲级】List Grades
Problem Description:Given a list ofNstudent 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 record...原创 2019-04-22 19:59:35 · 1064 阅读 · 0 评论 -
【PAT甲级】Longest Symmetric String
Problem Description:Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, givenIs PAT&TAP symmetric?, the longest symmetric sub-string iss PAT...原创 2019-04-22 20:18:46 · 844 阅读 · 0 评论 -
【PAT甲级】Sharing
Problem Description:To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same sublist if they share the sam...原创 2019-04-29 15:15:55 · 646 阅读 · 0 评论 -
【PAT甲级】A+B in Hogwarts
Problem Description: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 twe...原创 2019-04-25 15:07:23 · 494 阅读 · 0 评论 -
【PAT甲级】The Black Hole of Numbers
Problem Description: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, a new number ca...原创 2019-05-08 17:55:33 · 1043 阅读 · 0 评论 -
【PAT甲级】A+B and C (64bit)
Problem Description:Given three integersA,BandCin [−,], you are supposed to tell whetherA+B>C.Input Specification:The first line of the input gives the positive number of test cases...原创 2019-05-08 18:50:20 · 926 阅读 · 0 评论 -
【PAT甲级】World Cup Betting
Problem Description: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 trop...原创 2019-04-30 19:33:57 · 583 阅读 · 0 评论 -
【PAT甲级】Course List for Student
Problem Description:Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for e...原创 2019-04-30 20:34:32 · 1072 阅读 · 0 评论 -
【PAT甲级】Recover the Smallest Number
Problem Description:Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we can recover many numbers such...原创 2019-05-01 00:18:03 · 572 阅读 · 0 评论 -
【PAT甲级】The World's Richest
Problem Description:Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are supposed to simulate this job, but concent...原创 2019-05-14 21:21:37 · 1202 阅读 · 0 评论 -
【PAT甲级】Maximum Subsequence Sum
Problem Description:Given a sequence ofKintegers {,, ...,}. A continuous subsequence is defined to be { ,, ...,} where1≤i≤j≤K. The Maximum Subsequence is the continuous subsequence which...原创 2019-05-11 21:35:41 · 894 阅读 · 0 评论 -
【PAT甲级】Is It a Binary Search Tree
Problem Description:A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with keys less than the nod...原创 2019-05-12 18:22:47 · 989 阅读 · 0 评论 -
【PAT甲级】Student List for Course
Problem Description:Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student name lists of al...原创 2019-05-27 20:47:15 · 722 阅读 · 0 评论 -
【PAT甲级】Google Recruitment
Problem Description:In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting o...原创 2019-04-22 13:21:45 · 333 阅读 · 0 评论 -
【PAT甲级】Cut Integer
Problem Description:Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B = ...原创 2019-04-22 12:18:16 · 264 阅读 · 0 评论 -
【PAT甲级】Spell It Right
Problem Description:Given a non-negative integerN, your task is to compute the sum of all the digits ofN, and output every digit of the sum in English.Input Specification:Each input file conta...原创 2019-03-24 21:10:47 · 1188 阅读 · 0 评论 -
【PAT甲级】Elevator
Problem Description:The highest building in our city has only one elevator. A request list is made up withNpositive numbers. The numbers denote at which floors the elevator will stop, in specified...原创 2019-03-24 21:29:50 · 1383 阅读 · 0 评论 -
【PAT甲级】String Subtraction
Problem Description:Given two strings and ,S = −is defined to be the remaining string after taking all the characters infrom. Your task is simply to calculate...原创 2019-03-24 21:51:08 · 1007 阅读 · 0 评论 -
【PAT甲级】A+B for Polynomials
Problem Description:This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each lin...原创 2019-03-26 19:36:40 · 1174 阅读 · 0 评论 -
【PAT甲级】 List Sorting
Problem Description:Excel can sort records according to any column. Now you are supposed to imitate this function.Input Specification:Each input file contains one test case. For each case, the f...原创 2019-03-26 20:13:45 · 1181 阅读 · 0 评论 -
【PAT甲级】Sign In and Sign Out
Problem Description: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 sign...原创 2019-04-05 16:16:50 · 663 阅读 · 0 评论 -
【PAT甲级】Boys vs Girls
Problem Description: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 i...原创 2019-04-05 16:56:30 · 954 阅读 · 0 评论 -
【PAT甲级】Be Unique
Problem Description: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]. Th...原创 2019-04-05 17:52:21 · 1062 阅读 · 0 评论 -
【PAT甲级】Counting Ones
Problem Description:The task is simple: given any positive integerN, you are supposed to count the total number of 1's in the decimal form of the integers from 1 toN. For example, givenNbeing ...原创 2019-04-05 19:07:13 · 501 阅读 · 0 评论 -
【PAT甲级】 Colors in Mars
Problem Description: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 f...原创 2019-04-05 19:27:08 · 532 阅读 · 0 评论 -
【PAT甲级】Hello World for U
Problem Description: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 is, the...原创 2019-04-21 16:55:14 · 482 阅读 · 0 评论 -
【PAT甲级】The Dominant Color
Problem Description: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 proportio...原创 2019-04-21 17:52:15 · 607 阅读 · 0 评论 -
【PAT甲级】Come on! Let's C
Problem Description:"Let's C" is a popular and fun programming contest hosted by the College of Computer Science and Technology, Zhejiang University. Since the idea of the contest is for fun, the aw...原创 2019-04-22 11:03:36 · 526 阅读 · 0 评论 -
【PAT甲级】The Missing Number
Problem Description:Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list.Input Specification:Each input file contains one test case. For each ca...原创 2019-04-22 11:22:40 · 439 阅读 · 0 评论 -
【PAT甲级】Broken Keyboard
Problem Description: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 string t...原创 2019-06-07 15:38:55 · 1436 阅读 · 0 评论