Rosetta Problems

ダンジョン 3 (Dungeon 3)

https://atcoder.jp/contests/joi2021ho/tasks/joi2021ho_e