Guys my dumb brain couldn't understand this problem ,,can u help?
Guys my dumb brain couldn't understand this problem ,,can u help?
| № | Пользователь | Рейтинг |
|---|---|---|
| 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 |
| Страны | Города | Организации | Всё → |
| № | Пользователь | Вклад |
|---|---|---|
| 1 | maroonrk | 153 |
| 2 | Qingyu | 152 |
| 3 | nik_exists | 151 |
| 4 | AmShZ | 147 |
| 4 | maspy | 147 |
| 6 | Um_nik | 142 |
| 7 | Errichto | 139 |
| 8 | adamant | 136 |
| 9 | BledDest | 135 |
| 10 | AksLolCoding | 132 |
| Название |
|---|



Kind of visualized it like a game where each cell is a rotating cylinder with a hole in it , for some segment with same numbers together it is effectively the holes rotating together , now say the segment just rotates in front of you from 0 to the next position (0 is hole) , we can immediately start moving to try to cover this segment , if segment length is too large then the hole will come back before we are able to cover the segment . I hope this helps
It is quite simple. Think of it as crossing a region where there are n monsters, and their energy levels are not static—they increase by 1 every second. However, once a monster’s energy reaches m, it resets to 0. If the energy level of the current monster becomes 0, you lose the game. So, if there are m or more monsters in a continuous sequence, you will lose, because after (m − 1) steps, their energy will become 0
Hey, maybe my commented proof will help: https://codeforces.me/contest/2220/submission/371063321