Rosetta Problems

楽しい花の水やり (Watering Flower is Fun)

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