Rosetta Problems

Robot Going Back and Forth in a Hallway

https://atcoder.jp/contests/awc0092/tasks/awc0092_b