Neighbor Grid
1375B1200· pupil1s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
53 40 0 0 00 1 0 00 0 0 02 23 00 02 20 00 02 30 0 00 4 04 40 0 0 00 2 0 10 0 0 00 0 0 0
Output
YES0 0 0 00 1 1 00 0 0 0NOYES0 00 0NOYES0 1 0 01 4 2 10 2 0 01 3 1 0
58%
1375B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)