1471. Distance in the Tree

Problem Name:
1471. Distance in the Tree
Site:Timus
Links:
Tags:
Problem setters:
Dmitry Zhukov