Napalm Strikes
CodeChefOpen on judge ↗
Eliminate the target. There is a target on the battlefield which is a rectangular field of $N$, $M$ (N x M) dimensions. You have a fleet of jets ready to conduct a bunch of Napalm Strikes on the battlefield, a Napalm Strike can be conducted one at a time only, also a strike consists of a jet lighting a straight line of blocks on fire i.e a Row or Column is on fire. The target is also smart,
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