PAT甲级
Sun990o
记录成长过程,共勉!
展开
-
PAT甲级 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 Specification:Each inp...原创 2018-11-26 17:44:57 · 97 阅读 · 0 评论 -
PAT甲级 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), and E...原创 2019-01-20 22:06:44 · 198 阅读 · 0 评论 -
PAT甲级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 Afri...原创 2018-12-19 09:12:41 · 180 阅读 · 0 评论 -
PAT甲级1010 Radix
题目描述: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 positive...原创 2018-12-13 15:22:49 · 120 阅读 · 0 评论 -
PAT甲级 1007 Maximum Subsequence Sum
题目描述:Given a sequence of K integers { N 1 , N 2 , …, N K }. A continuous subsequence is defined to be { N i , N i+1 , …, N j} where 1≤i≤j≤K. The Maximum Subsequence is the...原创 2018-12-05 21:10:10 · 126 阅读 · 0 评论 -
PAT甲级 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 each line contains the inf...原创 2018-12-08 15:23:49 · 92 阅读 · 0 评论 -
PAT甲级1008 Elevator
题目描述: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 costs...原创 2018-12-08 14:04:36 · 199 阅读 · 0 评论 -
PAT甲级 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’...原创 2018-12-04 21:51:30 · 194 阅读 · 0 评论 -
PAT甲级1005 Spell It Right
题目描述: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 test case....原创 2018-12-04 21:51:10 · 107 阅读 · 0 评论 -
PAT甲级 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 st...原创 2018-12-04 21:50:55 · 615 阅读 · 3 评论 -
PAT甲级 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 line contains the ...原创 2018-11-27 14:35:56 · 240 阅读 · 0 评论 -
PAT甲级 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...原创 2018-11-29 22:08:12 · 139 阅读 · 0 评论 -
PAT甲级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 immediate...原创 2019-01-27 10:59:57 · 200 阅读 · 0 评论