Rosetta Problems

Monster Slaying

https://atcoder.jp/contests/awc0081/tasks/awc0081_b