cf/mirror

Recover Polygon (medium)

CF
690B22600· international gm4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
8
00000000
00000110
00012210
01234200
02444200
01223200
00001100
00000000
5
00000
01210
02420
01210
00000
7
0000000
0122100
0134200
0013200
0002200
0001100
0000000
0
Output
4
2 3
2 4
6 6
5 2
4
2 2
2 3
3 3
3 2
3
2 5
4 5
4 2
690B2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)