自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 138

原创 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 143

原创 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 274

原创 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 181

原创 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 103

原创 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 151

原创 PAT(甲级) 1007 Maximum Subsequence Sum (25分)

题目来源:PAT(甲级) 1006 Sign In and Sign Out (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. The Maximum Subs...

2020-02-25 20:45:44 99

原创 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 126

原创 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 102

原创 PAT(甲级)1004 Counting Leaves (30分)

题目来源:1004 Counting Leaves (30分) 题目描述: Sample Input: 2 1 01 1 02 Sample Output: 0 1 题目翻译: 一个家庭的层级结构经常被表现为一个家谱树。你的任务是统计这些家庭成员中谁没有孩子。 输入 每个输入文件包含一个测试实例。每个实例开始的一行包含N和M,N指树中的结点个数(0<N<100),M指非叶结点的个...

2020-01-31 18:07:52 120

原创 PAT(甲级)1003 Emergency (25 分)

题目来源: PAT(甲级)1003 Emergency (25 分) 题目描述: Sample Input: 5 6 0 2 1 2 1 5 3 0 1 1 0 2 2 0 3 1 1 2 1 2 4 1 3 4 1 Sample Output: 2 4 题目翻译: 作为一个城市的紧急救援队队长,你会得到一张你所在国家的特别地图。这张地图显示了几个分散的城市,由一些道路连接起来。地图上标出了...

2020-01-15 22:32:30 158

原创 PAT(甲级)1002 A+B for Polynomials (25 分)

题目来源:PAT(甲级)1002 A+B for Polynomials (25 分) 题目描述: Sample Input: 2 1 2.4 0 3.2 2 2 1.5 1 0.5 Sample Output: 3 2 1.5 1 2.9 0 3.2 题目翻译: 1002.多项式A与B的和 假设A和B是两个多项式,求A与B的和多项式。 输入 每个输入文件包含一个测试实例。每个实例有两行,每行...

2019-11-27 19:59:28 199

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除