UVa 10633 - Rare Easy Problem

HOW TO SOLVE
This is a math problem.

ONE of the result is N1 = (N*10)/9 (1)

Now The question is how to calculate the second one (there is only two results).

Just iterate from (N1-10) to (N1+10) and look for the answer.

Things to remember
You have to think about the overflow matter :D

Use the (1) as N1 = N + N/9

and use long long data type.

--Sanzee 05:13, 13 May 2009 (UTC)