PAT甲级
四果汤
学习完去看Stefanie演唱会hhh
展开
-
原创 PAT甲级——(1052) Linked List Sorting
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the next structure. Now give...原创 2020-02-29 19:56:47 · 90 阅读 · 0 评论 -
PAT甲级——(1032) Sharing
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 same suffix. For example,...原创 2020-02-29 17:20:58 · 135 阅读 · 0 评论 -
PAT甲级——(1009) Product of Polynomials
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 informati...原创 2020-02-26 16:50:54 · 131 阅读 · 0 评论 -
PAT甲级——(1065) A+B and C(64bit)
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 (≤10). The...原创 2020-02-26 14:09:39 · 139 阅读 · 0 评论 -
PAT甲级——(1085) Perfect Sequence
Given a sequence of positive integers and another positive integer p. The sequence is said to be a perfect sequence if M≤m×p where M and m are the maximum and minimum numbers in the sequence, respecti...原创 2020-02-21 14:15:52 · 123 阅读 · 0 评论 -
PAT甲级——(1084) Broken Keyboard
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 that you are supposed to ...原创 2020-02-21 13:54:26 · 123 阅读 · 0 评论 -
PAT甲级——(1002) A+B for Polynomials
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 informati...原创 2020-02-21 13:03:26 · 104 阅读 · 0 评论 -
PAT甲级——(1069) The Black Hole of Numbers
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 can be obtained by takin...原创 2020-02-20 20:10:02 · 183 阅读 · 0 评论 -
PAT甲级——(1092)To Buy or Not to Buy
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sel...原创 2020-02-20 16:59:22 · 103 阅读 · 0 评论 -
PAT甲级——(1025) PAT Ranking
Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists w...原创 2020-02-19 21:53:43 · 118 阅读 · 0 评论 -
PAT甲级——(1028) List Sorting
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 first line contains two i...原创 2020-02-19 17:33:16 · 85 阅读 · 0 评论