Rosetta Problems

科目選択 (Selecting Subjects)

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