PAT甲级
文章平均质量分 78
piudada
这个作者很懒,什么都没留下…
展开
-
PAT-甲级-1012 The Best Rank
1012 The Best Rank (25)(25 分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus ...原创 2018-08-09 13:31:55 · 303 阅读 · 0 评论 -
PAT-甲级-1009 Product of Polynomials
1009 Product of Polynomials (25)(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 l...原创 2018-08-09 00:01:06 · 382 阅读 · 0 评论 -
PAT-甲级-1008 Elevator
1008 Elevator (20)(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 speci...原创 2018-08-08 20:15:42 · 187 阅读 · 0 评论 -
PAT-甲级-1020 Tree Traversals
1020 Tree Traversals (25)(25 分)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level or...原创 2018-08-15 22:18:49 · 193 阅读 · 0 评论 -
PAT-甲级-1007 Maximum Subsequence Sum
1007 Maximum Subsequence Sum (25)(25 分)Given a sequence of K integers { N~1~, N~2~, ..., N~K~ }. A continuous subsequence is defined to be { N~i~, N~i+1~, ..., N~j~ } where 1 <= i <= j <= K...原创 2018-08-05 23:14:47 · 842 阅读 · 0 评论 -
PAT-甲级-1006 Sign In and Sign Out
1006 Sign In and Sign Out (25)(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 ...原创 2018-08-05 22:21:09 · 225 阅读 · 0 评论 -
PAT-甲级-1005 Spell It Right
1005 Spell It Right (20)(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:Each input ...原创 2018-08-05 22:17:42 · 253 阅读 · 0 评论 -
PAT-甲级-1019 General Palindromic Number
1019 General Palindromic Number (20)(20 分)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All ...原创 2018-08-10 00:03:42 · 192 阅读 · 0 评论 -
PAT-甲级-1015 Reversible Primes
1015 Reversible Primes (20)(20 分)A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime ...原创 2018-08-09 18:04:09 · 421 阅读 · 0 评论 -
PAT-甲级-1001 A+B Format
题目1001 A+B Format (20)(20 分)Calculate a + b and 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)....原创 2018-07-27 19:31:32 · 237 阅读 · 0 评论 -
PAT-甲级-1002 A+B for Polynomials
题目1002 A+B for Polynomials (25)(25 分)This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each...原创 2018-07-27 19:43:06 · 728 阅读 · 0 评论 -
PAT-甲级-1011 World Cup Betting
1011 World Cup Betting (20)(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 W...原创 2018-08-09 01:16:52 · 132 阅读 · 0 评论