- 博客(12)
- 收藏
- 关注
原创 PTA(甲级)1013 Battle Over Cities (25分)
题目来源:PTA(甲级)1013 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 cit...
2020-03-15 12:04:34 162
原创 PTA(甲级)1012 The Best Rank (25分)
题目来源:PTA(甲级)1012 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 - Mathematic...
2020-03-11 15:54:30 180
原创 PTA(甲级)1011 World Cup Betting (20分)
题目来源:PTA(甲级)1011 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 battl...
2020-03-08 12:00:16 322
原创 PTA(甲级)1010 Radix (25分)
题目来源:PTA(甲级)1010 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....
2020-03-03 16:08:15 201
原创 PAT(甲级)1009 Product of Polynomials (25分)
题目来源:PAT(甲级)1009 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 oc...
2020-03-02 18:43:59 130
原创 PTA(甲级)1008 Elevator (20分)
题目来源:PTA(甲级)1008 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 st...
2020-02-27 11:51:58 189
原创 PAT(甲级) 1007 Maximum Subsequence Sum (25分)
题目来源:PAT(甲级) 1006 Sign In and Sign Out (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 Subs...
2020-02-25 20:45:44 114
原创 PAT(甲级) 1006 Sign In and Sign Out (25分)
题目来源:PAT(甲级) 1006 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 doo...
2020-02-22 13:28:21 153
原创 PAT(甲级) 1005 Spell It Right (20分)
题目来源:PAT(甲级) 1005 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:...
2020-02-02 12:34:25 111
原创 PAT(甲级)1004 Counting Leaves (30分)
题目来源:1004 Counting Leaves (30分)题目描述:Sample Input:2 101 1 02Sample Output:0 1题目翻译:一个家庭的层级结构经常被表现为一个家谱树。你的任务是统计这些家庭成员中谁没有孩子。输入每个输入文件包含一个测试实例。每个实例开始的一行包含N和M,N指树中的结点个数(0<N<100),M指非叶结点的个...
2020-01-31 18:07:52 165
原创 PAT(甲级)1003 Emergency (25 分)
题目来源: PAT(甲级)1003 Emergency (25 分)题目描述:Sample Input:5 6 0 21 2 1 5 30 1 10 2 20 3 11 2 12 4 13 4 1Sample Output:2 4题目翻译:作为一个城市的紧急救援队队长,你会得到一张你所在国家的特别地图。这张地图显示了几个分散的城市,由一些道路连接起来。地图上标出了...
2020-01-15 22:32:30 176
原创 PAT(甲级)1002 A+B for Polynomials (25 分)
题目来源:PAT(甲级)1002 A+B for Polynomials (25 分)题目描述:Sample Input:2 1 2.4 0 3.22 2 1.5 1 0.5Sample Output:3 2 1.5 1 2.9 0 3.2题目翻译:1002.多项式A与B的和假设A和B是两个多项式,求A与B的和多项式。输入每个输入文件包含一个测试实例。每个实例有两行,每行...
2019-11-27 19:59:28 217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人