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:
String Set Queries
Ksusha and Square
Finding articulation points in a graph in $O(N+M)$
Treap (Cartesian tree)
Recommendations
Hongcow Masters the Cyclic Shift
Fenwick Tree
Divisors
Captains Mode
Dice Tower
Board Game
Molly's Chemicals
Festival Organization
Fence Planks
XOR Equation
Number of paths of fixed length / Shortest paths of fixed length
Bogosort
Hongcow's Game
Bacterial Melee
Perfect Pair
Superhero's Job
Maximum flow - Push-relabel method improved
Calculating the determinant of a matrix by Gauss
King Escape
Farewell Party
Spyke Talks
Factory Repairs
Increase Sequence
Image Preview
Berland Federalization
The Maths Lecture
Train Tracks