最新 最热

HDOJ(HDU) 1562 Guess the number(水题,枚举就行)

Problem Description Happy new year to everybody! Now, I want you to guess a minimum number x betwwn 1000 and 9999 to let (1) x % a = 0; (2) (x+1) % b = ...

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
1

HDOJ 1390 Binary Numbers(进制问题)

Problem Description Given a positive integer n, find the positions of all 1’s in its binary representation. The position of the least significant bit is 0.

2021-01-21
1

HDOJ 1339 A Simple Task(简单数学题,暴力)

Problem Description Given a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.

2021-01-21
1

HDOJ 1323 Perfection(简单题)

Problem Description From the article Number Theory in the 1994 Microsoft Encarta: “If a, b, c are integers such that a = bc, a is called a multiple of b or of...

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 1266 Reverse Number(数字反向输出题)

Problem Description Welcome to 2006’4 computer college programming contest!

2021-01-21
1

HDOJ 1196 Lowest Bit(二进制相关的简单题)

Problem Description Given an positive integer A (1 <= A <= 100), output the lowest bit of A.

2021-01-21
1

HDOJ 1194 Beat the Spread!(简单题)

Problem Description Superbowl Sunday is nearly here. In order to pass the time waiting for the half-time commercials and wardrobe malfunctions, the local hack...

2021-01-21
1