upprodun - bradendubois/competitive-programming GitHub Wiki
Arrangement
ID: upprodun
Difficulty: 1.3 - 1.7
CPU Time: 1 second
Memory: 1024 MB
Solution
For this, all N rooms will have at minimum M / N teams, and the remaining M % N teams can be striped across the N rooms.