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……
题解 1086: A+B for Input-Output Practice (II)
摘要:`for`枚举1到n即可
```cpp
#include
using namespace std;
int main(){
long long a,b;
int n;
cin>>n……
直接使用自带的while循环,然后多一行直接处理第一句即可
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;
public class Main {
public static void main(String[……
A+B for Input-Output Practice (II) python代码
摘要:这几个题真的有点没活了,实在不行去咬打火机,pass意思就是跳过,数组的长度小于等于1passwhile True: try: a = list(map(int, input().……
1086: A+B for Input-Output Practice (II)
摘要:解题思路:注意事项:scanf输入注意事项: 对于两个scanf ,第一个scanf输入数字完要回车才能进入到下一个scanf的数字输入。 ……