This page is still under construction.

Parts of this page are still being built. What you see may change.

Addition

Time limit1sMemory limit512 MB

Summary
Read two integers between -100,000 and 100,000 and print their sum.
Level

Easy1 of 10

Topics
Math, Implementation
Solved
No attempts yet

Problem

Read two integers aa and bb, then print a+ba+b.

Input and output in C

#include <stdio.h>
...
scanf("%d%d", &a, &b);
printf("%d\n", a + b);

Input and output in C++

#include <iostream>
...
cin >> a >> b;
cout << a + b << endl;

Input and output in Java

import java.util.Scanner;
...
Scanner sc = new Scanner(System.in);
a = sc.nextInt();
b = sc.nextInt();
System.out.println(a + b);

Input

The first line contains aa and bb, separated by one space. Both values are integers between -100,000 and 100,000.

Output

Print a+ba+b on the first line.

Examples2

  1. Example 1

    Input
    1 2
    
    Expected output
    3
    
  2. Example 2

    Input
    4 5
    
    Expected output
    9