最新 最热

codeforce 227E 矩阵快速幂求斐波那契+N个连续数求最大公约数+斐波那契数列的性质

E. Anniversary time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are less than 60 years left ...

2020-10-28
1

POJ - 3074 Sudoku (搜索)剪枝+位运算优化

In the game of Sudoku, you are given a large 9 × 9 grid divided into smaller 3 × 3 subgrids. For example,

2020-10-28
1

Good Numbers (hard version) (位运算)

定义好数为 3 x 3^{x} 3x加起来的和,给定一个数n,让你求......

2020-10-23
0

codeforce1196C

n robots have escaped from your laboratory! You have to find them as soon as possible, because these robots are experimental, and their behavior is not tested y...

2020-10-23
1

230B. T-primes (数论)

We know that prime numbers are positive integers that have exactly two distinct positive divisors. Similarly, we’ll call a positive integer t Т-prime, if t has ...

2020-10-23
1

PAT (Advanced Level) Practice 1096 Consecutive Factors (20 分)

Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×5×6×7, where 5, 6, and 7 are t...

2020-09-28
1

PAT (Basic Level) Practice (中文)1054 求平均值 (20 分)

本题的基本要求非常简单:给定 N 个实数,计算它们的平均值。但复杂的是有些输入数据可能是非法的。一个“合法”的输入是 [−1000,1000] 区间内的实数,并且最多精确到小数点后 2 位。当你计算平均值的时候,不能把那些非法...

2020-09-28
1

PAT (Advanced Level) Practice 1023 Have Fun with Numbers (20 分)

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which ...

2020-09-28
1

2019.8.15乘兴打Codeforces Round #569 (Div. 2)小记

Recently, on the course of algorithms and data structures, Valeriy learned how to use a deque. He built a deque filled with nn elements. The ii-th element is ai...

2020-09-28
0