Rosetta Problems

Library Seating Guide

https://atcoder.jp/contests/awc0181/tasks/awc0181_e