Close ×

My Accounts

You´ not logged in.

About

P1000 A+B Problem

Description

Calculate a + b.

Format

Input
Two integer a, b (0<=a, b<=32767)
Output
An integer, which equals to a + b

Samples

Sample Input
123 500
Sample Output
623

Restrictions

Time Limit: 1000 ms

Memory Limit: 65536 KB

Hint

## C Code #include <stdio.h> int main() { int a, b; scanf("%d%d", &a, &b); printf("%d\n", a + b); return 0; } ## C++ Code #include <iostream> int main() { int a = 0, b = 0; std::cin >> a >> b; std::cout << a + b << std::endl; return 0; } ## Free Pascal Code program Plus; var a, b:longint; begin readln(a, b); writeln(a + b); end. ## Java Code import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int a = in.nextInt(); int b = in.nextInt(); System.out.println(a + b); } } ## Python 3 Code print(sum(map(int, input().split())))