最新 最热

Codeforces Round #633 (Div. 2)C Powered Addition (贪心,二进制)

You have an array aa of length nn. For every positive integer xx you are going to perform the following operation during the xx-th second:

2020-09-28
1

Codeforces Round #633 (Div. 2) A Filling Diamonds (假题,观察)

You have integer nn. Calculate how many ways are there to fully cover belt-like area of 4n−24n−2 triangles with diamond shapes.

2020-09-28
1

Codeforces Round #613 (Div. 2)B. Just Eat It!

Today, Yasser and Adel are at the shop buying cupcakes. There are nn cupcake types, arranged from 11 to nn on the shelf, and there are infinitely many of each t...

2020-09-28
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 (Advanced Level) Practice 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...

2020-09-28
0

Codeforces Round #615 (Div. 3)A. Collecting Coins

Polycarp has three sisters: Alice, Barbara, and Cerene. They're collecting coins. Currently, Alice has aa coins, Barbara has bb coins and Cerene has cc coins. R...

2020-09-28
1

PAT (Advanced Level) Practice 1029 Median (25分)

Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the...

2020-09-28
1

PAT (Advanced Level) Practice 1003 Emergency (25 分)

As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some roads. Amoun...

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

代码详解——NMPC路径跟踪的Simulink仿真

通过上一期代码,我们可以发现LMPC在参考速度升高时,控制器无法稳定跟踪参考路径。

2020-09-25
1