Big Integer Addition
InterviewTime limit1sMemory limit256 MB
Add two decimal integers with up to 100000 digits given on one line and print their exact sum.
- Level
Easy3 of 10
- Topics
- String, Simulation
- Solved
- No attempts yet
Problem
Write a program that reads two integers A and B and prints A+B. The two values can be far too large for a 64-bit integer type.
Input
The first line contains A and B, separated by a single space. ()
Both values are given in decimal with no leading zeros.
Output
Print A+B on the first line, with no leading zeros.