Rosetta Problems

ミックススパイス2

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