题解 1085: A+B for Input-Output Practice (I)

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

筛选

题目 1085: A+B for Input-Output Practice (I)(C语言)

摘要:解题思路:还是多组数据进行测试a+b。我们可以通过循环来处理这个问题,我开始考虑的是用while=1进行循环处理,但输出超限 。所以我们反过来想让while中输入的不等于负数就解决了问题。注意事项:输……

A+B for Input-Output Practice (I)-题解(C++代码)

摘要:解题思路:        为避免题目可能的一些坑(比如输入数字大于int表示的范围),特地使用了long long int注意事项:        #define 语句 可以 将代码中 LL 换成 l……

A+B from beiqiao(C++)

摘要:#include<iostream> using namespace std; int main() {     int a,b;     while(cin>>a>>b)    //编译器……

A+B for Input-Output Practice (I) 题解

摘要:解题思路:不就是加法嘛!弄了个英文就不会了?注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){    ……

A+B for Input-Output Practice (I)

摘要:解题思路:EOF表示为文件结束符注意事项:参考代码:#include<stdio.h>int main(){    int a,b;    while (scanf("%d %d",&a,&b)!=E……