题目 1086: A+B for Input-Output Practice (II)(C语言) 摘要:解题思路:思路:题目不难我们可以定义二维数组进行处理。 第一行输入的是组的量,每组仅有两个数 ,输入后用循环处理即可。注意事项:多组数据,每组中两个数参考代码: int main()…… 题解列表 2021年05月23日 0 点赞 0 评论 610 浏览 评分:0.0
1086 我好累成员你知道吗C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int x,y,z,n,m,a,b;scanf("%d\n%d %d\n%d %d",&n,&a,&b,&x…… 题解列表 2021年11月06日 0 点赞 0 评论 503 浏览 评分:0.0
简单(无数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c; scanf("%d",&a); while(a--){ …… 题解列表 2021年12月06日 0 点赞 0 评论 538 浏览 评分:0.0
1086: A+B for Input-Output Practice (II) 摘要:无脑打印。#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; i…… 题解列表 2021年12月15日 0 点赞 0 评论 482 浏览 评分: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 评论 464 浏览 评分: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 评论 581 浏览 评分:0.0
1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n;//数组行数 int arr[n][2]; int sum[n]; scanf("%d",&n)…… 题解列表 2021年03月01日 0 点赞 0 评论 753 浏览 评分:0.0
知道组数求a+b的和 摘要:解题思路:用 n 来跳出循环即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; scanf("%d",&n); while(~sc…… 题解列表 2022年03月08日 0 点赞 0 评论 570 浏览 评分: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 评论 578 浏览 评分:0.0
最简单没有之一 摘要:解题思路: 运用while(scanf("%d %d",&a,&b)!=EOF),边输入边输出。注意事项: 这种写法有点取巧,scanf("%d\n",&c);只为应付检查而存在。参考…… 题解列表 2022年04月04日 0 点赞 0 评论 452 浏览 评分:0.0