cf/mirror

Rectangle and Square

CF
135B1600· expert2s256 MB⌨ stdin/stdout

Examples

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