The War is On
CodeChefOpen on judge ↗
The war is on and our army needs supplies of food packets for surviving and winning on the battlegrounds. The Indian Air Force has been assigned the mission to deliver the supplies in a manner that the enemy doesn't come to know of their arrival. The aircraft carriers drop the supplies from a height of H feet from the ground. A soldier standing at the distance of S feet from the marked position of
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