Problem 3300 · Easy

Minimum Element After Replacement With Digit Sum

Replace every number with its digit sum and keep the smallest result in one pass.

Open the interactive visualisation