← All problemsSign in

Interesting Run

Kalia is bored again and he has decided to go for a run along marina beach. He has decided that he wants to run for a total of D metres along the beach. But Kalia does realize it may be difficult to finish the whole run in one go, so he has decided he will take exactly K stops between the start point and the end point (which is located at D metres from the start point). But he wanted to make the

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