Rosetta Problems

とてもたのしい家庭菜園 (Growing Vegetables is Fun 4)

https://atcoder.jp/contests/joi2021ho/tasks/joi2021ho_a