cf/mirror

Recover Polygon (hard)

CF
690B32600· international gm5s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8 19
2 3 2 4 2 5 3 3 3 5 4 3 4 5 4 6 5 2 5 3 5 6 6 2 6 3 6 4 6 5 6 6 6 7 7 6 7 7
5 8
2 2 2 3 2 4 3 2 3 4 4 2 4 3 4 4
0 0
Output
4
2 3
2 4
6 6
5 2
4
2 2
2 3
3 3
3 2
690B3.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)