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
快点开吧! (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b ; int n,sum=0; scanf("%d",&n); while(n--) {…… 题解列表 2018年03月04日 0 点赞 0 评论 729 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b=0,n,count=0; scanf("%d ",&n); while(~sc…… 题解列表 2018年12月30日 0 点赞 0 评论 371 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,n; scanf("%d",&n); while (n--) { scanf("%d%d",…… 题解列表 2017年10月30日 0 点赞 0 评论 796 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum1,k=0,sum,n,i,j,a[100]; scanf("%d",&n); …… 题解列表 2018年11月09日 0 点赞 0 评论 473 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:你输入的第一个变量是控制你的后面的行数,所以,要将他放在循环的外面然后后面的每一组输入就是你的计算的a+b,这个对应于每一次for循环。注意事项:for循环的次数,别的没有什么注意的。参考代…… 题解列表 2017年09月23日 1 点赞 1 评论 1258 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码)水题。。。 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>int main(){ int a,b; int n; scanf("%d",&n); while(n--) { scanf("%…… 题解列表 2019年05月18日 0 点赞 0 评论 439 浏览 评分:0.0
A+B for Input-Output Practice (II) (C++代码) 摘要:#include<iostream> using namespace std; int main() { int a,b,n; cin>>n; for(int i=…… 题解列表 2018年09月28日 0 点赞 0 评论 697 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:以要输入的次数n结束;输入一对整数,输出它们的和;注意事项:依然是求A+B,但它的输入数据为:21 510 20输出为:630由输入数据第一行的2,我们可以看出表示有两组数据,也就是输入一对…… 题解列表 2018年08月20日 0 点赞 0 评论 1047 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int k,i[100],j[100],n; scanf("%d",&n); for(k=0;k<n;k++) …… 题解列表 2019年05月24日 0 点赞 0 评论 474 浏览 评分:0.0