Rosetta Problems

Road Closure on a One-Way Street

https://atcoder.jp/contests/awc0047/tasks/awc0047_b