Rosetta Problems

1-Player Concentration

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