Questions and helps about Up a Tree.Create New Topic
This problem is being checked, i.e., the input can be modified to better suit all test cases. During this period all submissions to this problem may be re-judged.
Please, consider disabling your ad-blocker for URI Online Judge. We'll show a non-intrusive, dev-oriented ad in this area. Help us keep education free!