PAT
汪汪碎冰冰
这个作者很懒,什么都没留下…
展开
-
【c++】PAT甲级1093/乙级1040 Count PAT's (25/25分)
题目The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed by the 3rd, the 4th, and the 6th characters....原创 2020-03-31 21:18:32 · 99 阅读 · 0 评论 -
【python】PAT甲级1011 World Cup Betting (20/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 Africa...原创 2020-02-21 22:33:42 · 250 阅读 · 0 评论 -
【python】PAT甲级1010 Radix (24/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 positive ...原创 2020-02-21 15:58:36 · 179 阅读 · 0 评论 -
【python】PAT1009 Product of Polynomials (25/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 the info...原创 2020-02-20 20:09:05 · 191 阅读 · 0 评论 -
【pathon】PAT甲级1008 Elevator (20/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 costs ...原创 2020-02-20 12:03:55 · 146 阅读 · 0 评论 -
【python】PAT甲级1007 Maximum Subsequence Sum (25/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 subsequen...原创 2020-02-19 21:41:58 · 141 阅读 · 0 评论 -
【python】PAT甲级1006 Sign In and Sign Out (25/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 out’s...原创 2020-02-19 18:04:14 · 196 阅读 · 0 评论 -
【python】PAT甲级1005 Spell It Right (20/20分)
题目Given a non-negative integer N(非零整数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...原创 2020-02-19 17:41:54 · 113 阅读 · 0 评论 -
【python】PAT甲级1004 Counting Leaves (30/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 contains one test case. Each case sta...原创 2020-02-18 20:27:19 · 298 阅读 · 0 评论 -
【python】PAT甲级1003 Emergency (25/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 city ...原创 2020-02-18 11:48:15 · 206 阅读 · 0 评论 -
[python] 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 inpu...原创 2020-02-17 23:09:22 · 144 阅读 · 0 评论 -
【python】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 occupies 2 lines, and each line contains the informati...原创 2020-02-17 18:08:14 · 339 阅读 · 0 评论