Rosetta Problems

Tri-Colored Paths

https://atcoder.jp/contests/arc153/tasks/arc153_f