Rosetta Problems

Conservation Plan for the Botanical Garden

https://atcoder.jp/contests/awc0019/tasks/awc0019_d