Rosetta Problems

図書館 2 (Library 2)

https://atcoder.jp/contests/joi2022yo2/tasks/joi2022_yo2_a