← All problemsSign in

Creepers Blastoff

Your Minecraft world has a piece of land where you want to fence off some area from creepers. The land when seen from the top is a square grid of size $N \times N$. Each of the squares of the grid has a magic number associated with it. The magic number of a square denotes the blast resistance of the fence post when it is placed in that particular square of the grid. Since you want an aesthetically

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start