Connected Component on a Chessboard
1196E1800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
31 11 42 5
Output
YES2 21 2YES2 31 33 32 22 4YES2 32 42 51 31 53 33 5
58%
1196E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
31 11 42 5
YES2 21 2YES2 31 33 32 22 4YES2 32 42 51 31 53 33 5