
PAT练习题
「已注销」
这个作者很懒,什么都没留下…
展开
-
PAT练习题(甲级) 1011 World Cup Betting (20分)(Java实现)
PAT练习题 1011 World Cup Betting (20分)题干题意解题思路注意事项代码实现 题干 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 Africa. Sim原创 2020-05-21 11:16:22 · 9651 阅读 · 1 评论 -
PAT练习题(甲级) 1010 Radix (25分)(Java实现)
PAT练习题 1010 Radix(25分)题干题意陷阱解题思路代码三目表达式转化十进制模板本题代码 题干 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a binary number. Now for any pair of positive integer原创 2020-05-16 15:29:22 · 9979 阅读 · 5 评论 -
PAT练习题(甲级) 1009 Product of Polynomials (25分)(Java实现)
PAT练习题 1009 Product of Polynomials (25分)题干题意解题思路代码实现 题干 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-05-13 11:28:53 · 9837 阅读 · 12 评论 -
PAT练习题(甲级) 1008 Elevator (20分)(Java实现)
PAT练习题 1008 Elevator (20分)题干题意解题思路代码实现总结 题干 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 6 seconds to move原创 2020-05-11 22:06:23 · 9605 阅读 · 1 评论 -
PAT练习题(甲级) 1007 Maximum Subsequence Sum (25分)(简要理解动态规划)(Java实现)
PAT练习题 1007 Maximum Subsequence Sum (25分)题干 题干 Given a sequence of K integers { N1, N2, …, NK}. A continuous subsequence is defined to be { Ni, Ni+1, …, Nj} where 1≤i≤j≤K. The Maximum Subsequence is the continuous subsequence which has the largest sum of原创 2020-05-10 19:36:39 · 10541 阅读 · 60 评论 -
PAT练习题(甲级) 1006 Sign In and Sign Out (25分)(Java实现)
PAT练习题 1006 Sign In and Sign Out (25分)题干题意解题思路代码实现两种代码运行时间比较总结 题干 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原创 2020-05-08 21:46:59 · 9618 阅读 · 1 评论 -
PAT练习题(甲级) 1005 Spell It Right (20分)(Java实现)
PAT 1005 Spell It Right (20分)题目题意解题思路代码实现 题目 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: ...原创 2020-05-08 15:24:29 · 9499 阅读 · 0 评论 -
PAT练习题(甲级) 1004 Counting Leaves (30分)(Java实现)
PAT练习题 1004 Counting Leaves(Java)题目题意解题思路代码实现 题目 A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Specification: Each inpu...原创 2020-05-07 15:31:58 · 10511 阅读 · 19 评论 -
PAT练习题(甲级) 1002 A+B for Polynomials
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 ...原创 2020-05-04 11:44:55 · 9390 阅读 · 0 评论 -
PAT练习题(甲级) 1001 A+B Format
【C语言】PAT练习题 1001 A+B Format【C语言】PAT练习题 1001 A+B Format题意思路分析实现代码 【C语言】PAT练习题 1001 A+B Format Calculate a+b and output the sum in standard format – that is, the digits must be separated into groups of ...原创 2020-04-30 11:01:34 · 9462 阅读 · 2 评论