cf/mirror

Good Robot Paths

CF
2141G2800· international gm7.5s512 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5
0 0
1 0
0 1
1 1
2 0
18
0 0
-1 0
-2 0
0 -1
-1 -1
0 1
1 1
0 2
1 2
2 2
1 3
6 -2
5 -2
5 -3
6 -3
4 -3
3 -3
5 -4
3
-100 100
-101 99
-99 101
Output
16
70
0
2141G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)