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

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

筛选

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

摘要:解题思路:这题其实谁都会做,主要是要看出题目里的要求:“with one line of output for each line in input”,也就是要用EOF来结束注意事项:输出时别忘记换行……

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<stdio.h> #include<stdlib.h> typedef struct ST {     struct ST* next……

1085 我爱你C语言简洁扼要

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d %d",&a,&b))  {printf("%d\n",a+……

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

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