Rosetta Problems

氷柱の上の聖剣

https://atcoder.jp/contests/yuha-c88/tasks/yuha_c88_d