Rosetta Problems

Range Query on a Tree II

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