Rosetta Problems

Monochromatic Path

https://atcoder.jp/contests/abc264/tasks/abc264_f