Longest path in a tree (#631) - Azerbaijan Computing Olympiad