Leha and another game about graph
840B2100· master3s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
1 01
Output
-1
Sample 2of 4
Input
4 50 0 0 -11 22 33 41 42 4
Output
0
Sample 3of 4
Input
2 11 11 2
Output
11
Sample 4of 4
Input
3 30 -1 11 22 31 3
Output
12
58%
840B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…