UVa 10633

From Algorithmist
Jump to: navigation, search

10633 - Rare Easy Problem[edit]

Summary[edit]

This is a math problem.

Explanation[edit]

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

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

Gotchas[edit]

  • Be careful of overflows

Implementations[edit]