Rosetta Problems

アリスのSweetMagic

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