UVa 713

From Algorithmist
Jump to: navigation, search

713 - Adding Reversed Numbers[edit]

Summary[edit]

Pretty straight-forward: Reverse the numbers, add them, and then reverse the sum.

Explanation[edit]

Originally, this didn't require BigNum, but the problem was changed so that the optimizers can be reflected on the ranklist. This problem is as simple as it sounds.

Gotcha's[edit]

  • Trailing Zeroes.
  • Leading Zeroes.

Input[edit]

4
24 1
4358 754
305 794
30 30

Output[edit]

34
1998
1
6

Solutions[edit]

See Also[edit]