其他分享
首页 > 其他分享> > 洛谷 P1001 A+B Problem

洛谷 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;
}

第五版 相关链接

1.洛谷P1001
2.我的博客
3.洛谷题解全览

标签:20,int,30,50,P1001,洛谷,Problem
来源: https://www.cnblogs.com/SuperTer/p/luogu-p1001.html