PAT
铃兰177
蓬莱山在
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PAT甲级——1063 Set Similarity (25分)
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt×100%, where Nc is the number of distinct common numbers shared by the two sets, and Nt is the total number of distinct numbers in the two sets. Your job is to calcula原创 2020-07-14 16:16:58 · 149 阅读 · 0 评论 -
PAT甲级——1059 Prime Factors (25分)
1059 Prime Factors (25分) Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1k1×p2k2×⋯×pmkm. Input Specificat...原创 2020-04-02 18:40:37 · 148 阅读 · 0 评论 -
PAT甲级——1025 PAT Ranking (25分)
1025 PAT 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 pl...原创 2020-04-01 23:47:02 · 149 阅读 · 0 评论 -
PAT甲级——1069 The 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, a new number can be obtained by t...原创 2020-03-26 19:57:23 · 99 阅读 · 0 评论 -
7-2 Left-pad (20 分)
@TOC7-2 Left-pad (20 分) 7-2 Left-pad (20 分) 根据新浪微博上的消息,有一位开发者不满NPM(Node Package Manager)的做法,收回了自己的开源代码,其中包括一个叫left-pad的模块,就是这个模块把javascript里面的React/Bab...原创 2019-08-13 18:07:31 · 370 阅读 · 0 评论 -
PAT甲级1004 Counting Leaves (30 分)日常一练记录
1004 Counting Leaves (30 分) A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Inp...原创 2019-09-02 20:21:15 · 231 阅读 · 0 评论
分享