Rosetta Problems
← atcoder に戻る
Seating Order at the Round Table
https://atcoder.jp/contests/awc0141/tasks/awc0141_d