cf/mirror

Bender Problem

CF
28A1600· expert2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 2
0 0
0 2
2 2
2 0
4 4
Output
YES
1 -1 2 -1
Sample 2of 3
Input
6 3
0 0
1 0
1 1
2 1
2 2
0 2
3 2 3
Output
YES
1 -1 2 -1 3 -1
Sample 3of 3
Input
6 3
0 0
1 0
1 1
2 1
2 2
0 2
2 2 3
Output
NO
28A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)