cf/mirror

Fewer Batteries

CF
2110D1700· expert3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
3 3
2 0 0
1 2 1
2 3 1
1 3 2
5 6
2 2 5 0 1
1 2 2
1 3 1
1 4 3
3 5 5
2 4 4
4 5 3
2 0
1 1
4 4
3 10 0 0
1 2 1
1 3 3
2 3 10
3 4 5
Output
1
4
-1
10
2110D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…