← All problemsSign in

The Great Escape

While drinking water from the lake, Smurfette becomes aware of Azrael’s presence. She needs to return to her mushroom hut at the position N. Her starting position is 1. Luckily, she has her pogo stick with her The pogo stick has m magical jump gears which have a jump multiplier associated with it (a1, a2, a3, ... am-1, am) which enables Smurfette to jump from position (say x) to x*ai , for any va

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start