← All problemsSign in

Jimmy is Late

Problem description. Jimmy over slept and is late for class! But it had rained earlier, and the roads are filled with puddles. The diatance between hostel and classrooms is N meters. Jimmy doesn’t like to wet his new shoes, so he decides to jump over the puddles. Unfortunately, Jimmy cannot jump more than K meters. Help Jimmy! Tell his if he can reach his class without wetting his new shoes.

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