Rosetta Problems

Changing the Sitting Arrangement

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