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.
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$ )
A single line that represents the result of sum of given numbers.
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 |
No. | Time Limit (ms) | Memory Limit (KiB) | Output Limit (KiB) | Subtasks |
---|---|---|---|---|
0 | 1000 | 65536 | 65536 | |
1 | 1000 | 65536 | 65536 | |
2 | 1000 | 65536 | 65536 | |
3 | 1000 | 65536 | 65536 | |
4 | 1000 | 65536 | 65536 | |
5 | 1000 | 65536 | 65536 | |
6 | 1000 | 65536 | 65536 | |
7 | 1000 | 65536 | 65536 | |
8 | 1000 | 65536 | 65536 | |
9 | 1000 | 65536 | 65536 | |
10 | 1000 | 65536 | 65536 | |
11 | 1000 | 65536 | 65536 | |
12 | 1000 | 65536 | 65536 | |
13 | 1000 | 65536 | 65536 | |
14 | 1000 | 65536 | 65536 | |
15 | 1000 | 65536 | 65536 | |
16 | 1000 | 65536 | 65536 | |
17 | 1000 | 65536 | 65536 | |
18 | 1000 | 65536 | 65536 | |
19 | 1000 | 65536 | 65536 | |
20 | 1000 | 65536 | 65536 |