Sum of Two
C++20 (GCC 14): 1 s · Python 3.14: 3 s · Memory: 256 MB
beginner mathimplementation
Given two integers A and B, print A + B.
Watch the limits: the values do not fit in a 32-bit integer.
Input
A single line with two integers A and B (-10^18 ≤ A, B ≤ 10^18).
Output
Print one integer: A + B.
Sample input 1
1 2
Sample output 1
3
Sample input 2
-5 12
Sample output 2
7
Loading editor…