Problem 3736 · Easy

Minimum Moves to Equal Array Elements III

Raise every value toward the largest one; each value contributes its gap to the maximum.

Open the interactive visualisation