Problem2859--最小生成树模板题

2859: 最小生成树模板题

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description



Sample Input Copy

4 5
1 2 2
1 3 2
1 4 3
2 3 4
3 4 3

Sample Output Copy

7

Source/Category