Rosetta Problems

Open the Door

https://atcoder.jp/contests/utpc2021/tasks/utpc2021_m