UVa 10633

Summary

This is a math problem.

Explanation

ONE of the result is N_1 = ${\displaystyle (N*10)/9}$ --------(1)

Now The question is how to calculate the second one (there is only two results). Just iterate from ${\displaystyle N_{1}-10}$ to ${\displaystyle N_{1}+10}$ and look for the answer.

Gotchas

• Be careful of overflows