tripti_t's blog

By tripti_t, history, 8 months ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
8 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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