Rosetta Problems

Twirling Robot

https://onlinejudge.u-aizu.ac.jp/problems/1156