ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1471. Distance in the Tree

Which is the father node?
Posted by Roby 24 Sep 2006 13:19
  u and v,which is the father node?
Re: Which is the father node?
Posted by Alex Yaroshevich (KemSU) 24 Sep 2006 13:22
any...
Re: Which is the father node?
Posted by Aram Shatakhtsyan 18 Apr 2007 15:14
There's no father node. You can do topsort and choose it
yourself.
Re: Which is the father node?
Posted by Rabbit Girl ♥ 6 Jan 2018 11:31
Um... You can't topsort a given tree, because it's an undirected graph.