A+B for Input-Output Practice (III) 摘要:#include<stdio.h>int main()//scanf()函数的返回值{ int a,b; while ((scanf("%d%d", &a, &b))&&(a!=0||b!=0))…… 题解列表 2023年11月06日 0 点赞 0 评论 667 浏览 评分:0.0
使用判断语句提前终止000000000000444444444 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年01月19日 0 点赞 0 评论 387 浏览 评分:0.0
A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while(cin>>a>>b) { if (a…… 题解列表 2024年03月07日 0 点赞 0 评论 436 浏览 评分:0.0
1087A+B(3)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)) { if(a==0…… 题解列表 2024年05月29日 0 点赞 0 评论 508 浏览 评分:0.0
无聊的星期五 摘要:while True: x, y = list(map(int, input().split())) if x == 0 and y == 0: break print…… 题解列表 2024年12月06日 0 点赞 0 评论 771 浏览 评分:0.0
应该大概是这样写的 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf(&qu…… 题解列表 2025年12月07日 0 点赞 0 评论 269 浏览 评分:0.0
第三种多项输入 摘要:解题思路:与前两种不同,题目说的是直到输入两个0才停止,那么在正常的循环输入中,单独讨论a b为0的情况注意事项:参考代码:#include <stdio.h>int main(){&nb…… 题解列表 2026年07月18日 0 点赞 0 评论 25 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:V#include<stdio.h>int main(){ int a,b,s; while(scanf("%d %d",&a,&b)&&a!=0&&b!=0) { s…… 题解列表 2017年12月09日 0 点赞 0 评论 1311 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; int n=1 ; while(n) { scanf("%d %d",&a,&b);//输…… 题解列表 2018年11月14日 1 点赞 0 评论 775 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; int n=1 ; while(n) { scanf("%d %d",&a,&b);//输…… 题解列表 2018年11月14日 0 点赞 0 评论 936 浏览 评分:0.0