Editorial for SAC '22 Code Challenge 2 P1 - Calendar Management
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:
Maintain a list for the day and a list for the name of each assignment.
Define a
For each query, check all the assignments that occur from
Then, set
Time Complexity:
Note that this is the hardest problem in this contest if you are familiar with most topics in competitive programming.
Comments