题解 1000: [竞赛入门]简单的a+b

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

简单的a+b【C++代码题解】

摘要:解题思路: 计算两个数的加法和,先定义变量。。。。注意事项:参考代码:```C++#include <iostream```……

简单的 a + b

摘要: #include using namespace std; int main() { int a, b; while (cin >……

简单的a+b 十分简单

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ cout<<a……

"简单的a+b"题解

摘要:解题思路:无注意事项:此题是求多组数据,可用while(cin>>a>>b)来输入每一组数据;为了格式,所以得在输出后加上\n转义字符或endl来换行参考代码:#include<iostream>us……

简单的a+b 题解

摘要:解题思路:输入ab,输出a+b注意事项:参考代码:#include<iostream>               using namespace std;                int ma……

简单的a+b(c++代码)

摘要:解题思路:注意事项:参考代码:解法一:#include <cstdio> int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF)//也可以写成whil……

简单的a+b(C++代码)

摘要:解题思路:首先设置两个加数,再输入,然后算出答案输出注意事项:注意是多组数据提交,要用上while循环,查看是否输入参考代码:#include<iostream>using namespace std……