Rosetta Problems

Lowest Common Ancestor

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