
PAT—数学
ZQYnn~
这个人很神秘,什么都没有写~
展开
-
PAT Advanced 1025 PAT Ranking
1025 PAT Ranking Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, a...原创 2020-02-16 16:22:58 · 177 阅读 · 0 评论 -
PAT Advanced 1063 Set Similarity
1063 Set Similarity Given two sets of integers, the similarity of the sets is defined to be N**c/N**t×100%, where N**c is the number of distinct common numbers shared by the two sets, and N**t is th...原创 2020-02-15 20:58:31 · 222 阅读 · 0 评论 -
PAT Advanced 1083 List Grades
1083 List Grades Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and output those student records of...原创 2020-02-15 16:35:57 · 138 阅读 · 0 评论 -
PAT Advanced 1029 Median
1029 Median Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the median of S2 = { 9, 10, 15...原创 2020-02-05 10:37:26 · 235 阅读 · 0 评论 -
PAT Advanced 1001 A+B Format
1001 A+B Format 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 Specificati...原创 2020-02-04 11:13:27 · 206 阅读 · 0 评论 -
PAT Advanced 1058 A+B in Hogwarts
1058 A+B in Hogwarts If you are a fan of Harry Potter, you would know the world of magic has its own currency system – as Hagrid explained it to Harry, “Seventeen silver Sickles to a Galleon and twen...原创 2020-02-04 10:34:43 · 227 阅读 · 0 评论 -
PAT Advanced 1027 Colors in Mars
1027 Colors in Mars People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for R...原创 2020-02-04 10:04:59 · 138 阅读 · 0 评论 -
PAT Advanced 1024 Palindromic Number
1024 Palindromic Number 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 single digit number...原创 2020-02-03 21:12:14 · 129 阅读 · 0 评论 -
PAT Advanced 1019 General Palindromic Number
1019 General Palindromic Number 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 single dig...原创 2020-02-03 10:08:32 · 203 阅读 · 0 评论 -
PAT Advanced 1015 Reversible Primes
1015 Reversible Primes 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 because it...原创 2020-02-02 19:51:09 · 218 阅读 · 0 评论 -
PAT Advanced 1002 A+B for Polynomials
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 each l...原创 2020-02-01 21:39:07 · 191 阅读 · 0 评论 -
PAT Advanced 1009 Product of Polynomials
1009 Product of 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 ea...原创 2020-02-02 16:57:18 · 205 阅读 · 1 评论 -
PAT Advanced 1011 World Cup Betting
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 t...原创 2020-02-02 14:34:07 · 174 阅读 · 0 评论 -
PAT Advanced 1046 Shortest Distance
1046 Shortest Distance (20point(s)) The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits. Input S...原创 2020-02-01 19:49:58 · 310 阅读 · 0 评论