Rosetta Problems

Rings

https://atcoder.jp/contests/JAG2013Spring/tasks/icpc2013spring_h