Editorial for DMOPC '22 Contest 2 P1 - DMOPC Crisis
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:
Subtask 1
This subtask was created to reward experimenting with constructing small solutions by hand.
Time Complexity:
Subtask 2
Intuitively, the fact that at least one of each member's neighbours must leave means that there cannot be more than __MM__MM__MM...
is one which satisfies the constraints and provides approximately
Time Complexity:
Comments