Problem 3852 · Easy

Smallest Pair With Different Frequencies

Count each value once, then take the smallest x and the smallest larger y whose count differs.

Open the interactive visualisation