题解 1086: A+B for Input-Output Practice (II)

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

最简单没有之一

摘要:解题思路:     运用while(scanf("%d %d",&a,&b)!=EOF),边输入边输出。注意事项:     这种写法有点取巧,scanf("%d\n",&c);只为应付检查而存在。参考……

A+B for Input-Output Practice (II)

摘要:解题思路:不就是加法嘛!弄了个英文就不会了?注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a,b;int main(){  ……

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++)……

1086: A+B for Input-Output Practice (II)

摘要:解题思路:注意事项:scanf输入注意事项:            对于两个scanf ,第一个scanf输入数字完要回车才能进入到下一个scanf的数字输入。                    ……

A+B for Input-Output Practice (II) python代码

摘要:这几个题真的有点没活了,实在不行去咬打火机,pass意思就是跳过,数组的长度小于等于1passwhile True:    try:        a = list(map(int, input().……

A+B for Input-Output Practice (II)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; int arr[100]; int sum = 0; c……