Rosetta Problems

SALT TREE XV

https://atcoder.jp/contests/joisc2007/tasks/joisc2007_salt