![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PAT
wtrnash
希望能不断进步的CS专业本科生
展开
-
PAT1002. A+B for Polynomials (25)
题目如下: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原创 2017-03-28 11:48:56 · 270 阅读 · 0 评论 -
PAT1017. 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 th原创 2017-04-24 15:00:16 · 243 阅读 · 0 评论 -
PAT1010. 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.Now for any pair of原创 2017-04-06 18:41:38 · 274 阅读 · 0 评论 -
PAT1016. 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 m原创 2017-04-13 17:05:09 · 289 阅读 · 0 评论 -
PAT1009. 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 occupies 2 lines, and each line contains原创 2017-04-04 10:56:49 · 309 阅读 · 0 评论 -
PAT1008. 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, in specified order. It原创 2017-04-03 15:06:20 · 212 阅读 · 0 评论 -
PAT1007. 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. TheMaximum Subsequence is the continuous subsequence which原创 2017-04-02 16:13:32 · 211 阅读 · 0 评论 -
PAT1006. 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原创 2017-04-01 21:49:14 · 218 阅读 · 0 评论 -
PAT1015. 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 reversible prime because its reverse 37 i原创 2017-04-11 11:00:17 · 294 阅读 · 0 评论 -
PAT1014. 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:原创 2017-04-10 15:16:31 · 238 阅读 · 0 评论 -
PAT1005. 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:Each input file contains one tes原创 2017-03-31 14:09:01 · 202 阅读 · 0 评论 -
PAT1013. 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 immediatel原创 2017-04-09 14:59:12 · 238 阅读 · 0 评论 -
PAT1004. 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.InputEach input file contains one test case. Each case starts with a原创 2017-03-30 19:45:10 · 241 阅读 · 0 评论 -
PAT1003. 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 rescue teams in each cit原创 2017-03-30 15:21:07 · 215 阅读 · 0 评论 -
PAT1012. 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),原创 2017-04-08 13:09:30 · 345 阅读 · 0 评论 -
PAT1011. 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 for the World Cup trophy in South原创 2017-04-07 12:36:07 · 186 阅读 · 0 评论 -
PAT1001. A+B Format(20)
最近开始每天做一道PAT练手,下面是PAT1001的题目。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原创 2017-03-27 20:41:13 · 324 阅读 · 0 评论 -
PAT1020. 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原创 2017-09-05 20:14:00 · 241 阅读 · 0 评论