Rosetta Problems

花火 (Fireworks)

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