Rosetta Problems

Round-Trip Patrol

https://atcoder.jp/contests/awc0018/tasks/awc0018_a