cf/mirror

Rectangles and Square

CF
335D2400· grandmaster3s512 MB⌨ stdin/stdout

Examples

Sample 1of 2
Input
9
0 0 1 9
1 0 9 1
1 8 9 9
8 1 9 8
2 2 3 6
3 2 7 3
2 6 7 7
5 3 7 6
3 3 5 6
Output
YES 5
5 6 7 8 9
Sample 2of 2
Input
4
0 0 1 9
1 0 9 1
1 8 9 9
8 1 9 8
Output
NO
335D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)