Sum of large numbers
Basic Accuracy: 28.26% Submissions: 1326 Points: 1

A pair of two very large positive integers is given. The task is to print their sum.

Input:
The first line of input contains a single integer T denoting the number of test cases. Then T test cases follow. Each test case consists of two lines. In the first line is the first number A and in the second is the second number B.

Output:
Corresponding to each test case, print the sum of A and B in a new line.

Constraints:
1 ≤ T ≤ 100
1 ≤ A,B ≤ 101002

Example:
Input:
2
63457
645
9999788586376
123456789
Output:
64102
9999912043165

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.