Rosetta Problems

図書館 (Library)

https://atcoder.jp/contests/joisc2018/tasks/joisc2018_k