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:
Adding Powers
Group Projects
Purification
Prefix-Suffix Palindrome (Easy version)
Paint the Numbers
Sieve of Eratosthenes Having Linear Time Complexity
Sparse Table
Dreamoon Likes Sequences
Ehab's Last Theorem
Exploration plan
Bingo!
Edge connectivity / Vertex connectivity
Restoring Map
Pavel and barbecue
Heroes of Making Magic III
Ehab and Path-etic MEXs
Candies and Two Sisters
Hydra
The Great Game
Friends
Count The Blocks
Petr and Permutations
Sqrt Decomposition
Polygons
Mind Control
Montgomery Multiplication
Kirchhoff's theorem. Finding the number of spanning trees
Bash Plays with Functions
Elementary
Checking a graph for acyclicity and finding a cycle in $O(M)$
Longest Saw
Bombs