cf/mirror

Walking Master

CF
1806A800· newbie1s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
-1 0 -1 2
0 0 4 5
-2 -1 1 1
-3 2 -3 2
2 -1 -1 -1
1 1 0 2
Output
4
6
-1
0
3
3
1806A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)