Redirecting to
NADOS

Tree And Extra Edge

.

https://www.codechef.com/problems/TREEDGE
Input Format
.
Output Format
.
Question Video
Constraints
.
Sample Input
1
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
Sample Output
10
7
5


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name