Editorial for Mock CCC '22 Contest 2 J2 - Snowboarding Championship


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.

Authors: uselessleaf, pewpew

We create two variables to keep track of the time needed to complete the course for each snowboarder. Then, we check all obstacles for each snowboarder, and increment appropriately. Finally, compare the times and output.

Time Complexity: \mathcal{O}(N)


Comments

There are no comments at the moment.