题解 1087: A+B for Input-Output Practice (III)

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

筛选

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

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

利用if对输出结果进行判断

摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){    int a,b,n;    while(~scanf("%d%d", &a, &b……

A+B for Input-Output Practice (III)

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

编写题解 1087: A+B for Input-Output Practice (III)

摘要:解题思路:注意事项:参考代码:/*输入格式输入包含多个测试用例。每个测试用例包含一对整数 a 和 b,每行一对整数。包含 0 0 的测试用例将终止输入,并且不会处理此测试用例。 输出格式对于每对输入……