Table of Contents
Edit on GithubJOI 2015 - Navigation
Authors: Andi Qu, Benjamin Qi
We essentially want to root the tree at and always move to the parent of the current node until we end up at .
Hint 1
Hint 2
Hint 3
Solution
Join the USACO Forum!
Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!