Rosetta Problems

Exhibition Booth Arrangement

https://atcoder.jp/contests/awc0010/tasks/awc0010_e