cf/mirror

Diagonal Walking v.2

CF
1036B1600· expert1s256 MB⌨ stdin/stdout
#math

Examples

Sample 1of 1
Input
3
2 2 3
4 3 7
10 1 9
Output
1
6
-1
1036B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)