PAT甲级
PAT甲级题解
wyatt007
这个作者很懒,什么都没留下…
展开
-
【PAT】1052 Linked List Sorting 解题报告
1052Linked List Sorting(25分)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...原创 2020-09-27 18:56:16 · 103 阅读 · 0 评论 -
【PAT】1032 Sharing 解题报告
1032Sharing(25分)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 ...原创 2020-08-05 21:59:55 · 186 阅读 · 0 评论 -
【PAT】1060 Are They Equal 解题报告
1060Are They Equal(25分)If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as0.123×105with simple chopping. Now...原创 2020-07-30 22:02:02 · 95 阅读 · 0 评论 -
【PAT】1059 Prime Factors 解题报告
1059Prime Factors(25分)Given any positive integerN, you are supposed to find all of its prime factors, and write them in the formatN=p1k1×p2k2×⋯×pmkm.Input Specific...原创 2020-04-03 11:07:19 · 145 阅读 · 0 评论 -
【PAT】1093 Count PAT's 解题报告
1093Count PAT's(25分)The stringAPPAPTcontains twoPAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and t...原创 2020-03-31 11:23:53 · 79 阅读 · 0 评论 -
【PAT】1069 The Black Hole of Numbers 解题报告
1069The Black Hole of Numbers(20分)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,...原创 2020-03-24 11:55:23 · 81 阅读 · 0 评论 -
【PAT】1025 PAT Ranking 解题报告
1025PAT Ranking(25分)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 pla...原创 2020-02-27 11:57:53 · 65 阅读 · 0 评论 -
【PAT】1031 Hello World for U 解题报告
1031Hello World for U(20分)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 i...原创 2020-01-14 11:47:05 · 304 阅读 · 0 评论