Problem 3065 · Easy
Each operation removes the smallest value; the answer is the number of values below k.
Open the interactive visualisation