Rosetta Problems

Frog Going Straight

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