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:
Scheduling jobs on two machines
Marbles
Factory Repairs
Encoding
Prefix function. Knuth–Morris–Pratt algorithm
Bits And Pieces
ELCA
Second price auction
Three Blocks Palindrome
Bathroom terminal
Two Arithmetic Progressions
Bear and Poker
Restore Permutation
Pokermon League challenge
Mysterious Crime
Candies and Two Sisters
King Moves
XORinacci
More Reclamation
TOF
Counting Rectangles is Fun
LRU
New Year and Cake
Kuroni the Private Tutor
Nastya and Time Machine
Elections
Uniqueness
Fox And Names
Traveling Around the Golden Ring of Berland
World of Darkraft - 2
Restructuring Company
The Brand New Function