47.1% (16/34)

10.4% (18/173)

# Description

Since the restriction of hardware, the range of type int is limited. But in real life we will face some cases that need to calculate the value which is out of that range. In this question, you are asked to write a program to deal with such condition.

# Input Format

Two lines of digits that represent two numbers, notice that the given number may be greater than the limit of long long int.( $|number|\leq 10^ {50}$ and $number\neq0$ )

# Output Format

A single line that represents the result of sum of given numbers.

123456789
876543211

1000000000

999999999
-1000000000

-1

# Problem Source

No. Testdata Range Constraints Score
1 0~6 Both two inputs are positive 13
2 0~13 The second input may be negative 4
3 0~20 No specific restriction 3

# Testdata and Limits

No. Time Limit (ms) Memory Limit (KiB) Output Limit (KiB) Subtasks
0 1000 65536 65536 1 2 3
1 1000 65536 65536 1 2 3
2 1000 65536 65536 1 2 3
3 1000 65536 65536 1 2 3
4 1000 65536 65536 1 2 3
5 1000 65536 65536 1 2 3
6 1000 65536 65536 1 2 3
7 1000 65536 65536 2 3
8 1000 65536 65536 2 3
9 1000 65536 65536 2 3
10 1000 65536 65536 2 3
11 1000 65536 65536 2 3
12 1000 65536 65536 2 3
13 1000 65536 65536 2 3
14 1000 65536 65536 3
15 1000 65536 65536 3
16 1000 65536 65536 3
17 1000 65536 65536 3
18 1000 65536 65536 3
19 1000 65536 65536 3
20 1000 65536 65536 3