| # | User | Rating |
|---|---|---|
| 1 | Kevin114514 | 3722 |
| 2 | Benq | 3676 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3408 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3196 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 143 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 134 |
| 10 | AksLolCoding | 132 |
|
On
ch_egor →
Codeforces Round #802 (Div. 2, based on All-Russian olympiad in the name of Keldysh) [Rated], 4 years ago
+3
Spoiler Nope, if you apply the given operations eventually the array will become non-decreasing from one of the ends since at the end you have to make all the elements equal. You can dry run the second and third examples once to have better clarity. |
|
On
ch_egor →
Codeforces Round #802 (Div. 2, based on All-Russian olympiad in the name of Keldysh) [Rated], 4 years ago
0
Spoiler Try to make the array non-increasing from either side. |
|
+1
Sort the permutation in descending order and shift the smallest element (i.e 1) one place at a time from right to left. For example if n=4:
|
|
0
Weak test case in problem 1529-B. If we take array a as {0,1} answer should be 2.My code is giving output 1 but it still got accepted. |
| Name |
|---|


