Блог пользователя tripti_t

Автор tripti_t, история, 8 месяцев назад, По-английски

Guys my dumb brain couldn't understand this problem ,,can u help?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
8 месяцев назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Hey, maybe my commented proof will help: https://codeforces.me/contest/2220/submission/371063321