Marathon
Chefland is holding a virtual marathon for the categories $10$ km, $21$ km and $42$ km having prizes $A, B, C$ ($A \lt B \lt C$) respectively to promote physical fitness. In order to claim the prize in a particular category the person must cover the total distance for that category within $D$ days. Also a single person **cannot** apply in multiple categories. Given the maximum distance $d$ km th
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