Rosetta Problems

Congestion of Evacuation Drill

https://atcoder.jp/contests/awc0123/tasks/awc0123_c