Army Base
CodeChefOpen on judge ↗
Arun is daydreaming in Math class.He has a sheet of graph paper with n rows and m columns, and he imagines that there is an army base in each cell for a total n*m bases. He wants to drop supplies at strategic points on the sheet ,marking each drop point with a red dot; If a base contains at least one package inside or top of its border fence ,then it is considered to be supplied .For Example In a
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