Rosetta Problems

Arrangement

https://atcoder.jp/contests/dwacon6th-prelims/tasks/dwacon6th_prelims_d