Longest path in a tree

Problem Name:
Longest path in a tree
Site:Spoj
Links:
Tags:
Problem setters: