Weights Assignment For Tree Edges

Problem Name:
Weights Assignment For Tree Edges
Site:CodeForces
Links:
Tags:
Problem setters: