Rosetta Problems

Museum Patrol

https://atcoder.jp/contests/awc0084/tasks/awc0084_d