Rosetta Problems

One-stroke Path

https://atcoder.jp/contests/abc054/tasks/abc054_c