Editorial for DMOPC '18 Contest 2 P2 - Booster Cushions
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
The tallest people should always be at the front. Additionally, it is always better to fill up a column rather than start a new one. Based on this, it is simple to implement an optimal seating. Calculate the number of columns required (
Time Complexity:
Comments