BARS AND TRUCK
CodeChefOpen on judge ↗
It's the peaceful town of *Heidelberg*. Today, a not so peaceful incident occured. Someone has stolent a section of the railway tracks. The railway company needs to replace them urgently. They signed a lease with a manufacturing company based in the same town. But alas, the company has run out of iron bars. John is an intern of the same company and has been assigned the task to transport the iron
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