自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 1025 PAT Ranking

1025 PAT Ranking (25 分)Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test is supposed to run simultaneously in several places, and the ranklists will be merged immediately after

2021-03-05 17:26:43 82

原创 1049 Counting Ones

1049 Counting Ones (30 分)The task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the decimal form of the integers from 1 to N. For example, given N being 12, there are five 1’s in 1, 10, 11, and 12.Input Spe

2021-03-04 10:19:29 119 1

原创 1048 Find Coins (25 分)

1048 Find Coins (25 分)Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However, there was a special requirement

2021-03-03 22:11:08 116 1

原创 1038 Recover the Smallest Number (30 分)

1038 Recover the Smallest Number (30 分)Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we can recover many numbers such like 32-321-3214-0229-87 or 0229-32-8

2021-03-02 20:16:40 156

原创 1015 Reversible Primes

1015 Reversible Primes (20 分)A reversible prime in any number system is a prime whose “reverse” in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also a prime.Now given any two pos

2021-03-01 18:46:27 42

原创 1014 Waiting in Line (30 分)

1014 Waiting in Line (30 分)Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are:The space inside the yellow line in fr

2021-02-27 21:17:21 103

原创 1013 Battle Over Cities (25 分)

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 city are closed. We must know immediately if we need to repair any other hig

2021-02-26 18:50:48 47

原创 1012 The Best Rank (25 分)

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 - Mathematics (Calculus or Linear Algrbra), and E - English. At the mean time, we enc

2021-02-26 15:32:45 115

原创 1011 World Cup Betting

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 battles for the World Cup trophy in South Africa. Similarly, football betting

2021-02-26 10:58:46 131

原创 1009 Product of Polynomials (25 分)

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 occupies 2 lines, and each line contains the information of a polynomial:K

2021-02-24 10:29:56 56

原创 1008 Elevator (20 分) Java

坑爹的地方在于连续两次按了同一层的话也是需要多停的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 stop, in specified order. It costs 6 seconds to m

2021-02-23 21:33:34 111

原创 1006 Sign In and Sign Out (25 分) java

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 door. Given the records of signing in’s and out’s, you are supposed to find t

2021-02-23 17:00:52 131

原创 1005 Spell It Right (20 分) Java

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:Each input file contains one test case. Each case occupies one line which

2021-02-23 15:38:12 68

原创 1004 Counting Leaves Java

1004 Counting Leaves (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 starts with a line containing 0<N

2021-02-23 09:53:39 194 1

原创 1002 A+B for Polynomials (25 分) java

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 information of a polynomial:K N

2021-02-21 13:17:48 127

原创 1001 A+B Format (20 分) Java实现

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 input file contains one test case. Each ca

2021-02-21 13:15:27 200

原创 Counterfeit Dollar

Counterfeit DollarTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 55414 Accepted: 17206DescriptionSally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are...

2020-02-23 15:56:08 116

原创 Joseph

JosephTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 60853 Accepted: 23163DescriptionThe Joseph’s problem is notoriously known. For those who are not familiar with the original proble...

2020-02-22 15:47:14 180

原创 约瑟夫环

约瑟夫问题约瑟夫问题是个著名的问题:N个人围成一圈,第一个人从1开始报数,报M的将被杀掉,下一个人接着从1开始报。如此反复,最后剩下一个,求最后的胜利者。例如只有三个人,把他们叫做A、B、C,他们围成一圈,从A开始报数,假设报2的人被杀掉。首先A开始报数,他报1。侥幸逃过一劫。然后轮到B报数,他报2。非常惨,他被杀了C接着从1开始报数接着轮到A报数,他报2。也被杀死了。最终胜利者是C...

2020-02-21 23:32:48 73

原创 木棒

木棒Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 165465 Accepted: 39784Description乔治拿来一组等长的木棒,将它们随机地砍断,使得每一节木棍的长度都不超过50个长度单位。然后他又想把这些木棍恢复到为裁截前的状态,但忘记了初始时有多少木棒以及木棒的初始长度。请你设计一个程序,帮助乔治计算...

2020-02-19 16:15:39 150

原创 STAMP

DescriptionHave you done any Philately lately?You have been hired by the Ruritanian Postal Service (RPS) to design their new postage software. The software allocates stamps to customers based on cus...

2020-02-18 22:38:01 493

原创 Edge Detection

Edge DetectionTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 21730 Accepted: 5099DescriptionIONU Satellite Imaging, Inc. records and stores very large images using run length encoding. ...

2020-02-14 10:14:50 174

原创 玛雅历

Description上周末,M.A. Ya教授对古老的玛雅有了一个重大发现。从一个古老的节绳(玛雅人用于记事的工具)中,教授发现玛雅人使用了一个一年有365天的叫做Haab的历法。这个Haab历法拥有19个月,在开始的18个月,一个月有20天,月份的名字分别是pop, no, zip, zotz, tzec, xul, yoxkin, mol, chen, yax, zac, ceh, mac...

2020-02-13 14:37:39 425

空空如也

空空如也

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

TA关注的人

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