Rosetta Problems

Range Query on a Tree

https://onlinejudge.u-aizu.ac.jp/problems/GRL_5_D