cf/mirror

Connected Component on a Chessboard

CF
1196E1800· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
1 1
1 4
2 5
Output
YES
2 2
1 2
YES
2 3
1 3
3 3
2 2
2 4
YES
2 3
2 4
2 5
1 3
1 5
3 3
3 5
1196E.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)