#4068. C++-GESP 2025-09认证六级-编程题02(货物运输)
C++-GESP 2025-09认证六级-编程题02(货物运输)
Background
Description

Format
Input
Output
Samples
4
1 2 6
1 3 1
3 4 5
18
7
1 2 1
2 3 1
3 4 1
7 6 1
6 5 1
5 1 1
9

4
1 2 6
1 3 1
3 4 5
18
7
1 2 1
2 3 1
3 4 1
7 6 1
6 5 1
5 1 1
9
By signing up a PaiBlockly编程创客平台图形模块编程软件系统 universal account, you can submit code and join discussions in all online judging services provided by us.