Rosetta Problems

A Walk Through the Flower Garden

https://atcoder.jp/contests/awc0158/tasks/awc0158_d