Rosetta Problems

Placing Medals on a Binary Tree

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