
PAT
小胡同的诗
千里之行,始于足下
展开
-
PAT -- 甲级1003(1003 Emergency)
1003 Emergency (25 分)As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amount of rescue teams ...原创 2019-04-10 15:48:36 · 132 阅读 · 0 评论 -
PAT --甲级1013(1013 Battle Over Cities)
1013 Battle Over Cities (25 分)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We ...原创 2019-04-24 18:04:54 · 200 阅读 · 0 评论 -
PAT -- 甲级1012(1012 The Best Rank)
1012 The Best Rank (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 or Li...原创 2019-04-24 16:52:23 · 278 阅读 · 0 评论 -
PAT --甲级1011(1011 World Cup Betting)
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 ...原创 2019-04-23 11:43:19 · 126 阅读 · 0 评论 -
PAT -- 甲级1010(1010 Radix)
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 pai...原创 2019-04-23 11:21:54 · 619 阅读 · 0 评论 -
关于PAT的题目分类(持续更新)
甲级题:1,柳婼题解2,cy题解乙级题:1,柳婼题解本人完成进度:待更…原创 2019-04-15 15:07:44 · 1377 阅读 · 0 评论 -
PAT -- 甲级1014 (1014 Waiting in Line)
1014 Waiting in Line (30 分)Suppose a bank has NNN windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers t...原创 2019-04-26 22:48:05 · 482 阅读 · 0 评论 -
PAT -- 甲级1007(1007 Maximum Subsequence Sum)
1007 Maximum Subsequence Sum (25 分)Given a sequence of KKK integers { N1N_1N1, N2N_2N2, ..., NKN_KNK }. A continuous subsequence is defined to be { NiN_iNi, Ni+1N_{i+1}Ni+1, ..., NjN_j...原创 2019-04-15 10:56:16 · 172 阅读 · 0 评论 -
PAT -- 甲级1006(1006 Sign In and Sign Out)
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 reco...原创 2019-04-15 09:58:04 · 246 阅读 · 0 评论 -
PAT --甲级1005(1005 Spell It Right )
1005 Spell It Right (20 分)Given a non-negative integer NNN, your task is to compute the sum of all the digits of NNN, and output every digit of the sum in English.Input Specification:Each input fil...原创 2019-04-12 23:31:37 · 133 阅读 · 0 评论 -
PAT -- 甲级1004(1004 Counting Leaves)
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.Input Specification:Each input file contains one ...原创 2019-04-12 23:12:35 · 189 阅读 · 0 评论 -
PAT --甲级1002(1002 A+B for Polynomials)
1002 A+B for 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...原创 2019-04-09 10:35:25 · 122 阅读 · 0 评论 -
PAT --甲级1009(1009 Product of Polynomials )
1009 Product of Polynomials (25 分)This time, you are supposed to find A×BA\times BA×B where AAA and BBB are two polynomials.Input Specification:Each input file contains one test case. Each case occ...原创 2019-04-15 16:57:36 · 496 阅读 · 0 评论 -
PAT -- 甲级1008(1008 Elevator)
1008 Elevator (20 分)The highest building in our city has only one elevator. A request list is made up with NNN positive numbers. The numbers denote at which floors the elevator will stop, in specifie...原创 2019-04-15 16:49:59 · 231 阅读 · 0 评论 -
PAT -- 甲级1001(A+B Format)
1001 A+B Format (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).Input Specif...原创 2019-04-08 07:32:39 · 124 阅读 · 0 评论 -
PAT -- 甲级1015(1015 Reversible Primes)
1015 Reversible Primes (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 becau...原创 2019-04-29 20:37:47 · 230 阅读 · 0 评论