Rosetta Problems

ルイス・キャロルの記憶術

https://atcoder.jp/contests/arc011/tasks/arc011_2