PAT(Advanced Level)
PAT甲级
BBBourne
这个作者很懒,什么都没留下…
展开
-
1016 Phone Bills (25分)
A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, depending on the time of day when the call is made. W...原创 2020-03-16 14:07:19 · 152 阅读 · 0 评论 -
1015 Reversible Primes (20分)
Areversible primein 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 because its reverse 37 is also a pr...原创 2020-03-16 14:03:25 · 174 阅读 · 0 评论 -
1015 Reversible Primes (20分)
1015Reversible Primes(20分) Areversible primein 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...原创 2020-02-05 17:10:02 · 101 阅读 · 0 评论 -
1014 Waiting in Line (30分)
1014Waiting in Line(30分) Suppose a bank hasNwindows 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 to ...原创 2020-02-05 15:33:40 · 113 阅读 · 0 评论 -
1013 Battle Over Cities (25分)
1013Battle 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 ...原创 2020-02-05 15:29:55 · 128 阅读 · 0 评论 -
1012 The Best Rank (25分)
1012The 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...原创 2020-02-05 15:19:16 · 116 阅读 · 0 评论 -
1011 World Cup Betting (20分)
1011World 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 ...原创 2020-02-05 15:17:00 · 107 阅读 · 0 评论 -
1010 Radix (25分)
1010Radix(25分) Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer isyes, if 6 is a decimal number and 110 is a binary number. Now for any pai...原创 2020-02-05 15:14:01 · 101 阅读 · 0 评论 -
1009 Product of Polynomials (25分)
1009Product of Polynomials(25分) This time, you are supposed to findA×BwhereAandBare two polynomials. Input Specification: Each input file contains one test case. Each case occupies 2 lines,...原创 2020-02-04 02:45:01 · 154 阅读 · 0 评论 -
1008 Elevator (20分)
1008Elevator(20分) The highest building in our city has only one elevator. A request list is made up withNpositive numbers. The numbers denote at which floors the elevator will stop, in specified ...原创 2020-02-03 21:21:39 · 112 阅读 · 0 评论 -
1007 Maximum Subsequence Sum (25分)
Given a sequence ofKintegers {N1,N2, ...,NK}. A continuous subsequence is defined to be {Ni,Ni+1, ...,Nj} where1≤i≤j≤K. The Maximum Subsequence is the continuous subsequen...原创 2020-02-03 21:20:27 · 130 阅读 · 0 评论 -
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 out's, you...原创 2020-02-03 21:05:30 · 151 阅读 · 0 评论 -
1005 Spell It Right (20分)
Given a non-negative integerN, your task is to compute the sum of all the digits ofN, and output every digit of the sum in English. Input Specification: Each input file contains one test case. Eac...原创 2020-02-03 21:04:18 · 114 阅读 · 0 评论 -
1004 Counting Leaves (30分)
单词 - - hierarchy:n. 层级;等级制度 英/ˈhaɪərɑːki/ 美/ˈhaɪərɑːrki/ pedigree:n. 血统;家谱 adj. 纯种的 英/ˈpedɪɡriː/ 美/ˈpedɪɡriː/ For the sake of simplicity:为了简单起见 sake:n. 目的;利益;理由;日本米酒 英/seɪk; ˈsɑːki/...原创 2020-02-03 21:02:41 · 131 阅读 · 0 评论 -
1003 Emergency (25分)
1003Emergency(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 ...原创 2020-02-01 15:40:53 · 126 阅读 · 0 评论 -
1002 A+B for Polynomials (25分)
首先这道题需积累的单词(- -): polynomial: 英/,pɒlɪ'nəʊmɪəl/ 美/,pɑlɪ'nomɪəl/ adj. 多项的,多词的;多项式的 n. 多项式;多词拉丁学名;表示任何多项数之和 exponent: 英/ɪkˈspəʊnənt/ 美/ɪkˈspoʊnənt/ n. [数] 指数;典型;说明者,说明物 n. 倡导者,鼓吹者...原创 2020-02-01 00:49:58 · 217 阅读 · 0 评论 -
1001 A+B Format (20分)
1001A+B Format(20分) Calculatea+band 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 Spec...原创 2020-01-31 22:13:47 · 91 阅读 · 0 评论