Rosetta Problems

Fair Elevator

https://atcoder.jp/contests/arc104/tasks/arc104_c