最新 最热

HDOJ(HDU) 1587 Flowers(水、、)

Problem Description As you know, Gardon trid hard for his love-letter, and now he’s spending too much time on choosing flowers for Angel. When Gardon entere...

2021-01-21
1

HDOJ 1405 The Last Practice

Problem Description Tomorrow is contest day, Are you all ready? We have been training for 45 day

2021-01-21
0

HDOJ 1397 Goldbach's Conjecture(快速筛选素数法)

Problem Description Goldbach’s Conjecture: For any even number n greater than or equal to 4, there exists at least one pair of prime numbers p1 and p2 such th...

2021-01-21
1

HDOJ 1395 2^x mod n = 1

Problem Description Give a number n, find the minimum x(x>0) that satisfies 2^x mod n = 1.

2021-01-21
1

HDOJ 1393 Weird Clock(明白题意就简单了)

Problem Description A weird clock marked from 0 to 59 has only a minute hand. It won’t move until a special coin is thrown into its box. There are different k...

2021-01-21
0

HDOJ 1391 Number Steps(打表DP)

Problem Description Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,… as shown in the figure. For example, 1, 2, and 3...

2021-01-21
1

HDOJ 1303 Doubles(简单题)

Problem Description As part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integers...

2021-01-21
1

HDOJ 1282 回文数猜想(回文串类)

Problem Description 一个正整数,如果从左向右读(称之为正序数)和从右向左读(称之为倒序数)是一样的,这样的数就叫回文数。任取一个正整数,如果不是回文数,将该数与他的倒序数相加,若其和不是回文数,则重复上述步骤,一直到获得...

2021-01-21
0

HDOJ 1279 验证角谷猜想

Problem Description 数论中有许多猜想尚未解决,其中有一个被称为“角谷猜想”的问题,该问题在五、六十年代的美国多个著名高校中曾风行一时,这个问题是这样描述的:任何一个大于一的自然数,如果是奇数,则乘以三再加一;如果...

2021-01-21
0

HDOJ 1236 排名(练耐心题)

Problem Description 今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑 每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的 考生,并将他们的成绩按降...

2021-01-21
0