cf/mirror

Minimum Grid Path

CF
1499C1500· specialist2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
2
13 88
3
2 3 1
5
4 3 2 1 4
Output
202
13
19
1499C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)