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

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

筛选

10845 A+B(1)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { pr……

A+B for Input-Output Practice (I)

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

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

摘要:题目要求:输入将由一系列整数对a和b组成,用空格分隔,每行一对整数。对于每对输入整数a和b,您应该在一行中输出a和b的总和,并且在输入中每行输出一行。解题思路:对多组数据进行求和参考代码:#inclu……

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

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

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+……