
PAT甲级
文章平均质量分 88
Watson_R
好记性不如烂笔头
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
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 Each input file contains one test case. E...原创 2018-07-18 08:55:09 · 907 阅读 · 1 评论 -
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...原创 2018-07-21 14:48:04 · 487 阅读 · 0 评论 -
1002 A+B for Polynomials (25)(25 分)
目录 题目: 代码: 题目: This time, you are supposed to find A+B where A and B are two polynomials. Input Each input file contains one test case. Each case occupies 2 lines, and each line contains the in...原创 2018-07-21 14:46:11 · 503 阅读 · 0 评论 -
1001 A+B Format (20)(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 Eac...原创 2018-07-21 14:44:17 · 378 阅读 · 0 评论 -
1012 The Best Rank (25)(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 Lin...原创 2018-07-29 15:38:04 · 237 阅读 · 0 评论 -
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...原创 2018-07-20 20:33:40 · 356 阅读 · 0 评论 -
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 ...原创 2018-07-28 18:40:24 · 559 阅读 · 0 评论 -
1010 Radix (25)(25 分)(完成度: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. N...原创 2018-07-25 17:45:59 · 910 阅读 · 2 评论 -
1007 Maximum Subsequence Sum (25)(25 分)
目录 题目: 分析: 反思: 代码: 题目: 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. TheMaxim...原创 2018-07-19 09:37:31 · 403 阅读 · 0 评论 -
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...原创 2018-07-18 15:05:13 · 253 阅读 · 0 评论 -
1005 Spell It Right (20)(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 ...原创 2018-07-18 14:23:52 · 347 阅读 · 0 评论 -
1009 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 ...原创 2018-07-21 19:14:25 · 324 阅读 · 0 评论