Rosetta Problems

Alternating Movement Robot

https://atcoder.jp/contests/awc0171/tasks/awc0171_d