Rosetta Problems

Hamiltonish Path

https://atcoder.jp/contests/agc013/tasks/agc013_b