A1. A+B
time limit per test
1 second
memory limit per test
64 megabytes
input
standard input
output
standard output
Jonny’s task at school was many problems of finding a wallet of two numbers. The boy wants to play, so he's too lazy to do it. Write a program that will do everything for him.
Input
The only line of input file contains two integers a and b ( - 106 < = a, b < = 106)
Output
In a single line of output file output-singular answer to the problem
Sample test(s)
input
2 2
output
4
input
-2 2
output
0
codeforces easy round problem A1 - A+B solution : http://codeforces.com/gym/200470/submission/6100465
#include <iostream> #include <cstdio> using namespace std; int main() { long long a, b; scanf("%I64d%I64d", &a, &b); printf("%I64d", a+b); return 0; }
No comments:
Post a Comment