cf/mirror

Bicycles

CF
1915G1800· expert4s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
5 5
1 2 2
3 2 1
2 4 5
2 5 7
4 5 1
5 2 1 3 3
5 10
1 2 5
1 3 5
1 4 4
1 5 8
2 3 6
2 4 3
2 5 2
3 4 1
3 5 8
4 5 2
7 2 8 4 1
7 10
3 2 8
2 1 4
2 5 7
2 6 4
7 1 2
4 3 5
6 4 2
6 7 1
6 7 4
4 5 9
7 6 5 4 3 2 1
Output
19
36
14
1915G.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…