
PAT甲级
文章平均质量分 81
柯森锎
92年的小学生
展开
-
PAT甲级练习题A1001.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).InputEach input file contains o原创 2016-07-12 22:12:46 · 578 阅读 · 1 评论 -
PAT甲级练习题A1020. 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 level order traversal sequence of the原创 2016-08-14 20:30:26 · 483 阅读 · 0 评论 -
PAT甲级练习题A1018. 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 station and return it to any other stations in t原创 2016-08-12 22:54:19 · 1637 阅读 · 0 评论 -
PAT甲级练习题A1017. 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 customers have to wait in line behind the yellow原创 2016-08-12 18:06:26 · 342 阅读 · 0 评论 -
PAT甲级练习题A1016. Phone Bills (25)
题目描述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 its reverse 37 is also a原创 2016-08-12 16:41:22 · 336 阅读 · 0 评论 -
PAT甲级A1014. 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 customers to wait in line are:The spa原创 2016-08-10 19:08:11 · 518 阅读 · 0 评论 -
PAT甲级练习题A1038. Recover the Smallest Number (30)
题目描述Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such like 32-321-3214-022原创 2016-09-01 22:25:13 · 281 阅读 · 0 评论 -
PAT甲级A1012. 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 Linear Algebra), and E -原创 2016-08-10 15:28:50 · 405 阅读 · 4 评论 -
PAT甲级A1013. 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 must know immediately if we原创 2016-08-10 17:03:33 · 374 阅读 · 0 评论 -
PAT甲级练习题A1025. PAT Ranking (25)
题目描述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, and the ranklist原创 2016-08-17 21:09:48 · 479 阅读 · 0 评论 -
PAT甲级练习题A1024. Palindromic Number (25)
题目描述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 numbers are palindromic numb原创 2016-08-17 16:34:30 · 275 阅读 · 0 评论 -
PAT甲级练习题A1023. 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, which happens to be another 9-digit number原创 2016-08-17 15:46:34 · 329 阅读 · 0 评论 -
PAT甲级练习题A1022. 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 book is assigned an unique 7-digit numbe原创 2016-08-15 20:53:20 · 510 阅读 · 0 评论 -
PAT甲级练习题A1007.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. The Maximum Subsequence is the continuous subsequence which h原创 2016-08-03 22:19:45 · 368 阅读 · 0 评论 -
PAT甲级练习题A1021. Deepest Root (25)
题目描述A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a ro原创 2016-08-15 17:05:27 · 259 阅读 · 0 评论 -
PAT甲级练习题A1004. Counting Leaves
题目描述A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. InputEach input file contains one test case. Each case starts with a line c原创 2016-07-17 21:19:57 · 831 阅读 · 0 评论 -
PAT甲级练习题A1003. 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 th原创 2016-07-17 21:13:38 · 2068 阅读 · 0 评论 -
PAT甲级练习题A1002. A+B for Polynomials
题目描述This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line contains the information of a polyno原创 2016-07-17 20:52:44 · 1036 阅读 · 0 评论 -
PAT甲级练习题A1097. Deduplication on a Linked List (25)
题目描述Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each value K, only the first node of which the value o原创 2016-09-07 20:38:23 · 299 阅读 · 0 评论