cf/mirror

Optimal Path

CF
1700A800· newbie2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
7
1 1
2 3
3 2
7 1
1 10
5 5
10000 10000
Output
1
12
13
28
55
85
500099995000
1700A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)