Pratik and Hopscotch
CodeChefOpen on judge ↗
Pratik loves playing Hopscotch with his friends and he is very good at it. It's a game where you have to jump over tiles drawn with chalk on the ground. In this version of hopscotch, The first N natural numbers are drawn on the ground. Pratik's friends will randomly place him on a tile numbered K. Pratik has to jump from the present tile to the next-to-next tile and so on to reach the end, until h
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start