Rosetta Problems

A Long Grid

https://atcoder.jp/contests/tessoku-book/tasks/tessoku_book_fh