Editorial for Another Contest 3 Problem 1 - Diverse Arrays
Submitting an official solution before solving the problem yourself is a bannable offence.
If an array is not diverse, it has fewer than
There are
Lemma: Let
Proof: By contradiction - if
Therefore, if we loop
Comments