A + B is often used as an example of the easiest problem possible to show some contest platform. However, some scientists have observed that sometimes this problem is not so easy to get accepted. Want to try?
Input
The input contains two integers a and b (0 ≤ a, b ≤ 103), separated by a single space.
Output
Output the sum of the given integers.
Examples
input
5 14
output
19
input
381 492
output
873
Solution:
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <set>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#include <memory.h>
#include <string>
#include <cstring>
#include <sstream>
#include <cstdlib>
#include <ctime>
#include <cassert>
using namespace std;
int main() {
int a, b;
cin >> a >> b;
cout << a + b << endl;
return 0;
}
Related posts:
Résumé Review
Likes Display
Graph Coloring
Bookshelves
Interactive LowerBound
Divisors
Chip Game
Party
Less or Equal
Interesting Array
Washer, Dryer, Folder
New Year Santa Network
Sereja and Algorithm
Prüfer code
EKG
Xenon's Attack on the Gangs
Noise Level
Good Substrings
Cowboy Beblop at his computer
Một số vấn đề đáng chú ý trong môn Tin học - Phan Công Minh
Marbles
Quantifier Question
Square Table
Dating
Count the Arrays
Max and Min
Beautiful Sequence
Bots
Read Time
Cow and Snacks
New Year and Forgotten Tree
Bad Ugly Numbers