Rosetta Problems

座席 2 (Seats 2)

https://atcoder.jp/contests/joig2024-open/tasks/joig2024_c