Tree And Extra Edge
https://www.codechef.com/problems/TREEDGEInput Format
.Output Format
.Question Video
.Sample Input
1Sample Output
7 3
1 2 1
1 3 -2
2 4 3
2 5 -4
5 7 5
3 6 6
2 3 1
5 4 2
5 6 0
10
7
5
-
Asked in Companies
-
Related Topics
Video Solution
Code Solution
{ }
{ }
Run