Find the Most Weighted Node

HihoCoder - 1065