Rosetta Problems

Eroding Ruins

https://atcoder.jp/contests/awc0166/tasks/awc0166_d