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 评论 149 浏览 评分:0.0
使用判断语句提前终止000000000000444444444 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年01月19日 0 点赞 0 评论 103 浏览 评分:0.0
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 评论 246 浏览 评分:0.0
A+B for Input-Output Practice (III)C语言 摘要:#include<stdio.h> int main() { int a, b; while (scanf("%d%d", &a, &b)!=EOF) { if (a == 0…… 题解列表 2023年06月05日 0 点赞 0 评论 120 浏览 评分:0.0
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:/*输入格式输入包含多个测试用例。每个测试用例包含一对整数 a 和 b,每行一对整数。包含 0 0 的测试用例将终止输入,并且不会处理此测试用例。 输出格式对于每对输入…… 题解列表 2022年12月26日 0 点赞 0 评论 70 浏览 评分:0.0
A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf("%d %d",&a,&b)!=EOF) { …… 题解列表 2022年11月02日 0 点赞 0 评论 98 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(a==0&&b=…… 题解列表 2017年07月25日 0 点赞 0 评论 823 浏览 评分:0.0
编写题解 1087: A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:while True: sum = 0 a = list(map(int,input().split())) if a[0]==0 and a[1]==…… 题解列表 2022年06月01日 0 点赞 0 评论 158 浏览 评分:0.0
这几题都很简单改一点点代码都可以 摘要:解题思路:注意事项:参考代码:#n=input()li=list(map(int,input().split()))print(sum(li))while len(li)!=0: li=list…… 题解列表 2022年05月26日 0 点赞 0 评论 182 浏览 评分:0.0
利用if对输出结果进行判断 摘要:解题思路:利用if判断输出结果即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; while(~scanf("%d%d", &a, &b…… 题解列表 2022年05月19日 0 点赞 0 评论 145 浏览 评分:0.0