Big number A+B
Time limit1sMemory limit256 MB
Read two integers with up to 10000 digits and print their sum without leading zeros.
- Level
Easy2 of 10
- Topics
- String, Math, Implementation, Simulation
- Solved
- No attempts yet
Problem
Write a program that reads two integers A and B and prints A+B. A and B are large enough that they do not fit in a 64-bit integer.
Input
The first line contains A and B, separated by a single space. ()
Output
Print A+B on the first line. Do not print leading zeros.