Rosetta Problems

Monster Subjugation

https://atcoder.jp/contests/awc0173/tasks/awc0173_d