cf/mirror

Robot in a Hallway

CF
1716C2000· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3
0 0 1
4 3 2
5
0 4 8 12 16
2 6 10 14 18
4
0 10 10 10
10 10 10 10
2
0 0
0 0
Output
5
19
17
3
1716C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)