Rosetta Problems

情報オリンピック (Olympiad in Informatics)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/586