PAT甲级
是Elie呀
人生苦短,莫忘初衷;凡事相信,凡事期待。认真做事,认真做人!翁恺老师寄语:“其实学习终归是一件痛苦的事情,所以呢面对学习你还是得要认真,用功,努力地去学习。享受的是什么?是学习之后获得的那种成就,快乐是从成就中来的。”
展开
-
PAT甲级 - 1013 Battle Over Cities (25 分)
题目链接:PAT甲级 - 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 a...原创 2019-02-21 20:15:54 · 110 阅读 · 0 评论 -
PAT甲级 - 1003 Emergency (25 分)
题目链接:(PAT甲级)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 ...原创 2019-02-17 23:40:47 · 116 阅读 · 0 评论 -
PAT甲级 - 1004 Counting Leaves (30 分)
题目链接:(PAT甲级)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...原创 2019-02-17 23:50:48 · 140 阅读 · 0 评论 -
PAT甲级 - 1005 Spell It Right (20 分)
题目链接:PAT甲级 - 1005 Spell It Right (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: Ea...原创 2019-02-19 13:34:38 · 312 阅读 · 0 评论 -
PAT甲级 - 1006 Sign In and Sign Out (25 分)
题目链接:PAT甲级 - 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. G...原创 2019-02-19 13:36:13 · 101 阅读 · 0 评论 -
PAT甲级 - 1007 Maximum Subsequence Sum (25 分)
题目链接:PAT甲级 - 1007 Maximum Subsequence Sum (25 分) Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is defined to be { Ni, Ni+1, ..., Nj } where 1≤i≤j≤K. T...原创 2019-02-19 13:37:44 · 142 阅读 · 0 评论 -
PAT甲级 - 1008 Elevator (20 分)
题目链接:PAT甲级 - 1008 Elevator (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,...原创 2019-02-19 13:39:22 · 206 阅读 · 0 评论 -
PAT甲级 - 1009 Product of Polynomials (25 分)
题目链接:PAT甲级 - 1009 Product of 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 occ...原创 2019-02-19 13:40:29 · 270 阅读 · 0 评论 -
PAT甲级 - 1010 Radix (25 分)
题目链接:PAT甲级 - 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. N...原创 2019-02-19 13:42:31 · 99 阅读 · 0 评论 -
PAT甲级 - 1011 World Cup Betting (20 分)
题目链接:PAT甲级 - 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 ...原创 2019-02-19 22:00:45 · 114 阅读 · 0 评论 -
PAT甲级 - 1002 A+B for Polynomials (25 分)
题目链接:(PAT甲级)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 occupie...原创 2019-02-17 22:35:30 · 405 阅读 · 0 评论 -
PAT甲级 - 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 Specification: Each input ...原创 2019-02-17 21:49:52 · 176 阅读 · 0 评论 -
PAT甲级 - 1023 Have Fun with Numbers (20 分)
题目链接:PAT甲级 - 1023 Have Fun with Numbers (20 分) Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578...原创 2019-02-22 08:24:42 · 114 阅读 · 0 评论 -
PAT甲级 - 1014 Waiting in Line (30 分)
题目链接:PAT甲级 - 1014 Waiting in Line (30 分) Suppose a bank has N 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...原创 2019-02-21 20:19:12 · 143 阅读 · 0 评论 -
PAT甲级 - 1015 Reversible Primes (20 分)
题目链接:PAT甲级 - 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 reversib...原创 2019-02-21 20:20:00 · 132 阅读 · 0 评论 -
PAT甲级 - 1016 Phone Bills (25 分)
题目链接:PAT甲级 - 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 t...原创 2019-02-21 20:21:03 · 150 阅读 · 0 评论 -
PAT甲级 - 1017 Queueing at Bank (25 分)
题目链接:PAT甲级 - 1017 Queueing at Bank (25 分) Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the customer...原创 2019-02-21 20:22:12 · 134 阅读 · 0 评论 -
PAT甲级 - 1018 Public Bike Management (30 分)
题目链接:PAT甲级 - 1018 Public Bike Management (30 分) There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any st...原创 2019-02-21 20:23:18 · 148 阅读 · 0 评论 -
PAT甲级 - 1019 General Palindromic Number (20 分)
题目链接:PAT甲级 - 1019 General Palindromic Number (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 num...原创 2019-02-21 20:24:17 · 75 阅读 · 0 评论 -
PAT甲级 - 1020 Tree Traversals (25 分)
题目链接:PAT甲级 - 1020 Tree Traversals (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...原创 2019-02-21 20:25:15 · 124 阅读 · 0 评论 -
PAT甲级 - 1021 Deepest Root (25 分)
题目链接:PAT甲级 - 1021 Deepest Root (25 分) A graph which is connected and acyclic can be considered a tree. The hight of the tree depends on the selected root. Now you are supposed to find the root that r...原创 2019-02-21 20:26:08 · 154 阅读 · 0 评论 -
PAT甲级 - 1022 Digital Library (30 分)
题目链接:PAT甲级 - 1022 Digital Library (30 分) A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each b...原创 2019-02-21 20:27:04 · 173 阅读 · 0 评论 -
PAT甲级 - 1012 The Best Rank (25 分)
题目链接:PAT甲级 - 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 (...原创 2019-02-19 22:02:36 · 113 阅读 · 0 评论