Rosetta Problems

Flow Control of Waterways

https://atcoder.jp/contests/awc0120/tasks/awc0120_c