Jan 28, 2026 Round 1 · morning

Problem 8 · Subtracting the reversed number

$\overline{abcd} - \overline{dcba} = 999(a-d) + 90(b-c)$.

Integer answer, at most 4 digits

What is the largest difference we can get by subtracting from a four-digit number with all distinct digits the number obtained by reversing its digits, which must also be a four-digit number?

Copa Cangur · SCM Hard Closed answer