Rosetta Problems

Organizing the Bookshelf

https://atcoder.jp/contests/awc0020/tasks/awc0020_c