Add Two Big Numbers (String)

JavaScript Hard 4 views
Back to Questions

Problem Description

Two very large non-negative integers are given as strings. Add them and print the sum as string.

Input Format

Two lines: A and B.

Output Format

One line sum.

Sample Test Case

Input:
999999999999999999 2
Output:
1000000000000000001

Constraints

Length of each number up to 1e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev