Editorial for An Animal Contest 1 P2 - Alpaca Racing
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Subtask 1
Notice that
Time Complexity:
Subtask 2
Here, we explain a simple approach. For every alpaca, it is necessary to lower its speed until it is slower than your alpaca. Simply keep on lowering each alpaca's speed while it is greater than
Notice that this approach with no optimization may not pass cases where the difference between a certain
Time Complexity:
Comments
good problem!
wsg
glorious king