- 博客(15)
- 收藏
- 关注
转载 PAT Advanced 1015 Reversible Primes
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...
2019-09-03 22:43:00 83
转载 PAT Advanced 1014 Waiting in Line
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 wait in line are:Th...
2019-09-03 22:38:00 90
转载 PAT Advanced 1013 Battle Over Cities
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 must know immediately if w...
2019-09-03 22:01:00 68
转载 PAT Advanced 1012 The Best Rank
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 Linear Algrbra), andE...
2019-09-03 21:51:00 82
转载 PAT Advanced 1011 World Cup Betting
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 Afric...
2019-09-03 21:45:00 61
转载 PAT Advanced 1010 Radix
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 pair of positive...
2019-09-02 23:52:00 87
转载 PAT Advanced 1009 Product of Polynomials
This time, you are supposed to findA×BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the in...
2019-09-02 23:36:00 78
转载 PAT Advanced 1008 Elevator
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 order. It costs ...
2019-09-02 23:32:00 85
转载 PAT Advanced 1007 Maximum Subsequence Sum
Given a sequence ofKintegers {N1,N2, ...,NK}. A continuous subsequence is defined to be {Ni,Ni+1, ...,Nj} where1. The Maximum Subsequence is the continuous subsequenc...
2019-09-02 23:30:00 106
转载 PAT Advanced 1006 Sign In and Sign Out
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...
2019-09-02 23:23:00 116
转载 PAT Advanced 1005 Spell It Right
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...
2019-09-02 23:19:00 86
转载 PAT Advanced 1004 Counting Leaves
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 test case. Each case s...
2019-09-01 22:23:00 94
转载 PAT Advanced 1003 Emergency
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 in each city and ...
2019-09-01 22:12:00 112
转载 PAT Advanced 1002 A+B for Polynomials
This time, you are supposed to findA+BwhereAandBare two polynomials.Input Specification:Each input file contains one test case. Each case occupies 2 lines, and each line contains the in...
2019-09-01 22:04:00 75
转载 PAT Advanced 1001 A+B Format
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 Specification:Each i...
2019-09-01 21:57:00 66
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人