UVa 10633

From Algorithmist
Jump to navigation Jump to search

10633 - Rare Easy Problem[edit]

Summary[edit]

This is a math problem.

Explanation[edit]

ONE of the result is N_1 = --------(1)

Now The question is how to calculate the second one (there is only two results). Just iterate from to and look for the answer.

Gotchas[edit]

  • Be careful of overflows

Implementations[edit]