洛谷 P1001 A+B Problem
作者:互联网
第一版 题目描述
输入两个数,输出它们的和
第二版 样例解析
输入
20 30
输出
50
原因
20+30=50
第三版 思路分析
因为数据都很小,在int
范围内,所以直接用int
输入输出
第四版 正确代码
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout<<a+b<<endl;
return 0;
}
第五版 相关链接
标签:20,int,30,50,P1001,洛谷,Problem 来源: https://www.cnblogs.com/SuperTer/p/luogu-p1001.html