Detective Pikaptcha is investigating a disturbance in the spacetime continuum. It seems a powerful pokébot is being used to warp space around our hero to keep him trapped. Help him map his surroundings in order to escape and uncover the culprit!Your objective is to write a program that will compute, for each cell of a grid, the number of adjacent passages.
You're given a grid filled with
We're considering the
Allotted response time to output is =
A higher resolution is required to access the IDE