Rosetta Problems

むこのどうぶつたち と しんりんのはかい (Innocent Animals and Destruction of Forests)

https://atcoder.jp/contests/ijpc2012-1/tasks/ijpc_animals