Rosetta Problems

Bonus for Flower Bed Making

https://atcoder.jp/contests/awc0138/tasks/awc0138_d