Question
Calculate a+b
Standard Input
Two integer aa,bb.
Standard Output
Output a+ba+b
Samples
Input | Output |
---|---|
1 2 | 3 |
2 3 | 5 |
5 6 | 11 |
Constraints
0 ≥ a,b ≤ 10
Time Limit 1000 ms
Memory Limit 256 MiB
Output Limit 64 MiB
Source Classic Problem
Code
#include<iostream>
using namespace std;
int main(void)
{
int num1, num2;
cin >> num1 >> num2;
cout << num1 + num2;
return 0;
}
Attention
In this problem we should avoid use unnecessary variable to reduce memory use and speed up the process of computing.