Distance in Tree

Revision en1, by codingdude, 2018-01-24 14:02:05

Hello guys, I was solving this problem (http://codeforces.me/contest/161/problem/D).

After trying for sometime , I read the editorial of the problem and I am not being able to understand the meaning of this line.

Can anyobdy help me with this?

I basically want to understand about logic or proof behind this.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English codingdude 2018-01-24 14:02:05 421 Initial revision (published)