1849: 货物运输 - CCF-GESP2025年9月六级C++

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:1 Solved:1

Description

Input

Output

⼀⾏,⼀个整数,表⽰你设计的路线所经过的道路长度总和。

Sample Input Copy

4
1 2 6
1 3 1
3 4 5

Sample Output Copy

18