Rosetta Problems

スプリンクラー (Sprinkler)

https://atcoder.jp/contests/joisc2022/tasks/joisc2022_h