Doubt in Problem INOI1301

Calvins Game | CodeChef
In this problem, in the given example, he can jump from square 4 to 5, and vice-versa infinitely right? Because there is no limitation to the number of jumps on the sqaures.

From the Problem Statement:

The game consists of one forward phase followed by one backward phase.

(emphasis mine).

So forward phase meaning that the person can go forward as much as he wants, and then he has to go backwards only (he can’t go forwards after taking a backwards step) right?

1 Like

That’s my reading of it:

  • In the forward phase, Calvin makes zero or more moves
  • In the backward phase, Calvin makes zero or more moves

Oh yeah that makes sense now. Thank you :grinning_face_with_smiling_eyes:

1 Like