Rosetta Problems

Polite Queue

https://atcoder.jp/contests/awc0176/tasks/awc0176_b