Finding adjacent cells
Many problems require the use of finding the adjacent cells of a cell regarding boundaries. Is their an easy way to do this?
AtCoder Beginner Contest 483 discussion
ICPC NA North Central and South Division