Rosetta Problems

A Walk and Barricades

https://atcoder.jp/contests/awc0046/tasks/awc0046_e