ACM基本输入输出(二)(C语言代码) 摘要:解题思路:此题相比第一道而言,会提前告诉你是几组数据,第一行的2就表示有两组数据。注意事项:参考代码(一):#include <stdio.h> int main() { int N,a,b;…… 题解列表 2019年01月05日 3 点赞 0 评论 683 浏览 评分:4.0
A+B for Input-Output Practice (II)-题解(C语言代码) 摘要:#include int main() { int a=0,b=0,s=0; int i; int n; scanf("%d",&n); for(i=0;i…… 题解列表 2020年02月01日 0 点赞 0 评论 524 浏览 评分:2.0
A+B for Input-Output Practice (II) (皮皮哲Java代码) 摘要:解题思路:本题在上一题的基础上添加一个变量输入,在这里我定义的是a1;参考代码:import java.util.Scanner;public static void main(String[] ar…… 题解列表 2018年12月14日 1 点赞 1 评论 341 浏览 评分:2.0
1086A+B(2)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); long long a,b; while(n) { scanf(…… 题解列表 2024年05月29日 0 点赞 0 评论 440 浏览 评分:0.0
A+B for Input-Output Practice (II) from beiqiao (C++) 摘要:for循环:#include<iostream> using namespace std; int main() { int a,b; int c; cin>>c;…… 题解列表 2022年01月23日 0 点赞 0 评论 107 浏览 评分:0.0
A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; int arr[100]; int sum = 0; c…… 题解列表 2024年03月07日 0 点赞 0 评论 382 浏览 评分:0.0
题解 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b; int n,i=0; scanf("%d",&n); …… 题解列表 2022年02月21日 0 点赞 0 评论 272 浏览 评分:0.0
A+B for Input-Output Practice (II) 摘要:```cpp #include using namespace std; int main() { int a,b,c; cin>>c; for(int i=1;i>a>>…… 题解列表 2022年03月05日 0 点赞 0 评论 269 浏览 评分:0.0
知道组数求a+b的和 摘要:解题思路:用 n 来跳出循环即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; scanf("%d",&n); while(~sc…… 题解列表 2022年03月08日 0 点赞 0 评论 217 浏览 评分:0.0
编写题解 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int a,b; cin>>n; …… 题解列表 2022年03月19日 0 点赞 0 评论 234 浏览 评分:0.0