自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 DNA Sorting

Problem Description One measure of unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instance, in the letter sequenceDAABEC’’, this m...

2020-03-27 10:02:55 78

原创 今年暑假不AC

Total Submission(s) : 48 Accepted Submission(s) : 27 Problem Description “今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%…” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代...

2020-03-23 23:12:28 101

原创 Number Sequence

Total Submission(s) : 60 Accepted Submission(s) : 26 Problem Description A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, y...

2020-03-22 20:16:04 73

原创 Fibonacci Again

Problem Description There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2). Input Input consists of a sequence of lines, each containing an integer n. (n &l...

2020-03-21 19:11:37 92

原创 人见人爱A^B

Total Submission(s) : 44 Accepted Submission(s) : 29 Problem Description 求A^B的最后三位数表示的整数。 说明:A^B的含义是“A的B次方” Input 输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1<=A,B<=10000),如果A=0, B=0,则表示输入数据的结束,不做处理。 Ou...

2020-03-20 15:33:35 86

原创 Rightmost Digit

Time Limit : 2000/1000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 94 Accepted Submission(s) : 22 Problem Description Given a positive integer N, you should outpu...

2020-03-19 16:50:37 75

原创 最小公倍数

Total Submission(s) : 15 Accepted Submission(s) : 10 Problem Description 给定两个正整数,计算这两个数的最小公倍数。 Input 输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数. Output 对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。 Sample Input10 14 Sampl...

2020-03-18 10:48:24 117

原创 Elevator

Problem Description 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 o...

2020-03-17 09:45:54 101

原创 Sum Problem

Time Limit : 1000/500ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 29 Accepted Submission(s) : 17 Problem Description Hey, welcome to HDOJ(Hangzhou Dianzi Universi...

2020-03-16 10:38:58 126

原创 Digital Roots

Total Submission(s) : 44 Accepted Submission(s) : 11 Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digi...

2020-03-13 17:21:50 108

原创 Big Number

Problem Description In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are g...

2020-03-13 15:57:52 62

原创 The Hardest Problem Ever

Problem Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him to survive, he decided to create one of th...

2020-03-12 15:52:17 115

原创 A+B for Input-Output Practice (VII)

Total Submission(s) : 33 Accepted Submission(s) : 23 Problem Description Your task is to Calculate a + b. Input The input will consist of a series of pairs of integers a and b, separated by a space,...

2020-03-12 14:01:30 97

原创 A+B for Input-Output Practice (VI)

Problem Description Your task is to calculate the sum of some integers. Input Input contains multiple test cases, and one case one line. Each case starts with an integer N, and then N integers follow ...

2020-03-11 10:44:10 157

原创 A+B for Input-Output Practice (V)

Problem Description Your task is to calculate the sum of some integers. Input Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M inte...

2020-03-11 10:38:09 117

原创 A+B for Input-Output Practice (IV)

Total Submission(s) : 14 Accepted Submission(s) : 9 Problem Description Your task is to Calculate the sum of some integers. Input Input contains multiple test cases. Each test case contains a intege...

2020-03-10 13:04:58 86

原创 A+B for Input-Output Practice (III)

Total Submission(s) : 17 Accepted Submission(s) : 11 Problem Description Your task is to Calculate a + b. Input Input contains multiple test cases. Each test case contains a pair of integers a and b...

2020-03-10 13:02:22 113

原创 A+B for Input-Output Practice (II)

Problem Description Your task is to Calculate a + b. Input Input contains an integer N in the first line, and then N lines follow. Each line consists of a pair of integers a and b, separated by a spac...

2020-03-09 20:05:37 116

原创 A+B for Input-Output Practice (I)

Total Submission(s) : 35 Accepted Submission(s) : 14 Problem Description Your task is to Calculate a + b. Too easy?! Of course! I specially designed the problem for acm beginners. You must have foun...

2020-03-09 20:03:13 96

空空如也

空空如也

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

TA关注的人

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