RUN, CHEF, RUN !!!
CodeChefOpen on judge ↗
Chef took part in a race event ,in which the length of racing track is $N$ miles. However there are checkpoints at an interval of $K$ miles from the starting point onward, i.e at the distance of $K,2K,3K...$ from the starting point. On reaching each checkpoint Chef has to return back to the starting point to restart his race, and the visited checkpoint is removed. Chef is busy preparing him
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