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

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

筛选

ACM基本输入输出(二)(C语言代码)

摘要:解题思路:此题相比第一道而言,会提前告诉你是几组数据,第一行的2就表示有两组数据。注意事项:参考代码(一):#include <stdio.h> int main() { int N,a,b;……

1086A+B(2)(while循环输出)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); long long a,b; while(n) { scanf(……

A+B for Input-Output Practice (II)

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

知道组数求a+b的和

摘要:解题思路:用 n 来跳出循环即可注意事项:参考代码:#include<stdio.h>int main(){    int a,b,n;    scanf("%d",&n);    while(~sc……