Skills101
← All coding problems

Sum of Two Numbers

easyBasics+10 XPTime limit 2s

Read two integers a and b and print their sum.

Input: one line with two integers a and b.

Output: a single integer — a + b.

Constraints: −10¹⁸ ≤ a, b ≤ 10¹⁸ (use 64-bit integers: long in Java, long long in C++).

Sample input 1

2 3

Sample output 1

5

Sample input 2

-7 10

Sample output 2

3

Read input from standard input and print the answer to standard output. Your code runs in a secure sandbox against the samples (Run) and hidden tests (Submit).

Loading editor…

Log in to run and submit your code — it's free.