Standard Graph Problem
1870H3500· legendary gm2s512 MB⌨ stdin/stdout
Examples
Sample 1of 2
Input
4 5 61 2 12 3 53 2 34 1 82 1 4+ 1- 1+ 3+ 1+ 4+ 2
Output
15-1141240
Sample 2of 2
Input
10 14 108 6 42 5 13 5 41 6 31 3 77 2 16 1 34 10 14 6 55 4 15 8 1010 9 19 5 19 7 6+ 7+ 8- 7+ 10+ 2- 10+ 5- 2- 5+ 3
Output
28242919182418192920
58%
1870H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…