Problem:A+BProblem
A+B问题
Description
计算两个数之和
Input
输入两个数 a,b
Output
输出a,b之和,其中 -10{19}<a,b<10{19}−10
19
<a,b<10
19
Sample Input 1
3 5
Sample Output 1
8
Sample Input 2
1234567890123456789 66666
Sample Output 2
1234567890123523455
这道题非常简单(是给萌新看的),但要注意数据类型,代码如下:
#include<iostream>
using namespace std;
int main()
{
long long a,b;//因为数据很大
cin>>a>>b;
cout<<a+b<<endl;
return 0;
}
很简单就不给特殊区了。
爱你们(花粉)!!!