Need help in 161D. Distance in a tree

Revision en1, by mujtaba1747, 2020-06-26 00:53:05

Hi, I was trying to solve the question 161D - Distance in Tree but I'm getting WA on test 11 and can't figure out what's wrong. And the editorial is a bit confusing to me.

Here is my submission : 85076026 Can anyone suggest what might've gone wrong. Thanks in advance !

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English mujtaba1747 2020-06-26 00:53:05 317 Initial revision (published)