[Login|Register]
Problems

Status

Rank

Problem 1036
Long Sum
Time Limit: 1000ms
Memory Limit: 65536kb
Description
A and B are both integers, which have at most 300 decimal digits. Please calculate their sum.
Input
Each line of the input contains two decimal integers A and B separated with a space character. (0<=A,B<10^300)
Output
For each line of input, print the value of A+B in decimal form on a line by itself.
Sample Input
1 1
1234567890 10000000010
Sample Output
2
11234567900
University of Science and Technology of China
Online Judge for ACM/ICPC
Processed in 1.0ms with 1 query(s).