After the War, Aid
CodeChefOpen on judge ↗
Cooper is dangling above Mann’s planet in his lander. Dr Mann has in vain tried to dock with the Endurance, resulting in a huge blast. Cooper is trying to save the Endurance by docking with it, but Dr Mann stops him. So Cooper has to attack Dr Mann’s lander to stop him from getting to the Endurance and save the planet. Cooper has $n$ missiles arranged in a line each labeled with an impact numbe
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