USACO 2019 US Open Contest, Platinum Problem 1. Tree Boxes
Farmer John is planning to build NN (1≤N≤1051≤N≤105) farms that will be connected by N−1N−1 roads, forming a tree. Typically, whenever one of his farms is having an issue he is not told the specifi...