Rosetta Problems

魔法使いXの戦い

https://atcoder.jp/contests/rcl-contest-2021/tasks/rcl_contest_2021_a