← All problemsSign in

A DT Chip

CodeChefRating 2988Open on judge ↗

Cyberverse is in the form of a rectangular grid of $N$ rows and $M$ columns. There is one cyborg living in each cell of the grid. The rows of the grid are numbered from $1$ to $N$, top to bottom. The columns of the grid numbered from $1$ to $M$, left to right. Each cell contains a DT chip designed by doctor Aditi and each DT chip is connected with 4 side adjacent DT chips ( if it exists)

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