Rosetta Problems

Triangle Puzzle

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