Problem 2457 · Medium

Minimum Addition to Make Integer Beautiful

Round n up to the next multiple of a power of ten; the cheapest way to lower the digit sum is to clear the trailing digits.

Open the interactive visualisation