利用if对输出结果进行判断 摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; while(~scanf("%d%d", &a, &b…… 题解列表 2022年05月19日 0 点赞 0 评论 294 浏览 评分:0.0
A+B for Input-Output Practice (III) 题解 摘要:解题思路:不就是加法嘛!弄了个英文就不会了?注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b;int main(){ …… 题解列表 2022年05月07日 0 点赞 0 评论 320 浏览 评分:0.0
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2022年03月19日 0 点赞 0 评论 331 浏览 评分:0.0
A+B for Input-Output Practice (III 摘要:```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b){ if(a==0&…… 题解列表 2022年03月05日 0 点赞 0 评论 269 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:输入a,b,都为0时结束循环当输入结束后,判断a,b是否都等于0注意事项: 也可写成!(a==0&&b==0)参考代码:#include <stdio.h> int main(){ int…… 题解列表 2018年05月28日 0 点赞 0 评论 720 浏览 评分:0.0
其实很简单呀! 摘要:解题思路:注意事项:只要能够明白当输入数字为0时,直接可以输出结果就可以了参考代码:#include<stdio.h>int main(){int a,b;while(scanf("%d%d",&a,…… 题解列表 2018年04月14日 0 点赞 0 评论 751 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,s[100],i=0,j; while(scanf("%d %d",&a,&b)==…… 题解列表 2018年04月05日 0 点赞 0 评论 966 浏览 评分:0.0
A+B for Input-Output Practice (III) (C++代码) 摘要:参考代码:#include <iostream> using namespace std; int main() { int a, b; while (cin >> a >…… 题解列表 2018年02月01日 0 点赞 0 评论 1199 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<cstdio>int main(){int a,b;while(scanf("%d%d",&a,&b),a+b){printf("%d\n",a+b);…… 题解列表 2018年01月03日 1 点赞 0 评论 842 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C语言代码) 摘要:```c #include int main() { int a,b; while(1) { scanf("%d%d",&a,&b); if(a==0&&b==0)b…… 题解列表 2019年10月15日 0 点赞 0 评论 694 浏览 评分:0.0