Rosetta Problems

手持ち花火 (Sparklers)

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