A+B for Input-Output Practice (II)-题解(C语言代码) 摘要:#include<stdio.h> int main() { int n,i,c[105]; int a,b; scanf("%d",&n); for(i=0;i<n;i++){ …… 题解列表 2021年02月14日 0 点赞 0 评论 172 浏览 评分:0.0
最简单没有之一 摘要:解题思路: 运用while(scanf("%d %d",&a,&b)!=EOF),边输入边输出。注意事项: 这种写法有点取巧,scanf("%d\n",&c);只为应付检查而存在。参考…… 题解列表 2022年04月04日 0 点赞 0 评论 151 浏览 评分:0.0
A+B for Input-Output Practice (II) 摘要:解题思路:不就是加法嘛!弄了个英文就不会了?注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a,b;int main(){ …… 题解列表 2022年05月07日 0 点赞 0 评论 145 浏览 评分:0.0
编写题解 1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:n = int(input())while True: a = list(map(int,input().split())) if len(a) == …… 题解列表 2022年05月31日 0 点赞 0 评论 159 浏览 评分:0.0
直接使用自带的while循环,然后多一行直接处理第一句即可 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年01月19日 0 点赞 0 评论 125 浏览 评分:0.0
A+B for Input-Output Practice (II) ,C++解题 摘要:解题思路:用while注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int k; i…… 题解列表 2022年06月07日 0 点赞 0 评论 190 浏览 评分:0.0
A+B for Input-Output Practice (II) python代码 摘要:这几个题真的有点没活了,实在不行去咬打火机,pass意思就是跳过,数组的长度小于等于1passwhile True: try: a = list(map(int, input().…… 题解列表 2023年12月03日 0 点赞 0 评论 114 浏览 评分:0.0
1086: A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:scanf输入注意事项: 对于两个scanf ,第一个scanf输入数字完要回车才能进入到下一个scanf的数字输入。 …… 题解列表 2023年08月27日 0 点赞 0 评论 169 浏览 评分:0.0
1086——————A+B for Input-Output Practice (II) 摘要:题目:1086: A+B for Input-Output Practice (II) **题目描述** The first line integer means the number of in…… 题解列表 2022年08月20日 0 点赞 0 评论 304 浏览 评分:0.0
A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,n; scanf("%d",&n); for(int i=0;i<n;i++)…… 题解列表 2022年11月02日 0 点赞 0 评论 202 浏览 评分:0.0