Rosetta Problems

カードの並び替え

https://atcoder.jp/contests/joi2007yo/tasks/joi2007yo_d