A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,i,sum=0; cin>>n; whi…… 题解列表 2022年04月24日 0 点赞 0 评论 153 浏览 评分:0.0
A+B for Input-Output Practice (IV) 题解 摘要:解题思路:不就是n个数的加法嘛!(连加)!弄了个英文就不会了?注意事项:注意是n个数相加!参考代码:#include<bits/stdc++.h>using namespace std;int n,a…… 题解列表 2022年05月07日 0 点赞 0 评论 128 浏览 评分:0.0
用python投机取巧的方法 摘要:解题思路:注意事项:参考代码:#n=input()li=list(map(int,input().split()))print(sum(li[1:]))while len(li)!=0: li=…… 题解列表 2022年05月26日 0 点赞 0 评论 204 浏览 评分:0.0
编写题解 1088: A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:while True: sum = 0 lis = list(map(int,input().split())) if lis[0] == 0: …… 题解列表 2022年06月01日 0 点赞 0 评论 135 浏览 评分:0.0
一个用来水题的思路(C语言实现) 摘要:## 这是一个用来水题的思路 - 非常容易理解,毕竟有没有内存限制和运行时间的限制,我也就懒得考虑O(n)了,希望对各位道友有所帮助 - **代码如下:** ```c #include in…… 题解列表 2022年07月09日 0 点赞 0 评论 158 浏览 评分:0.0
1088——————A+B for Input-Output Practice (IV) 摘要:题目:1088: A+B for Input-Output Practice (IV) **题目描述** Your task is to Calculate the sum of some int…… 题解列表 2022年08月20日 0 点赞 0 评论 320 浏览 评分:0.0
A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i,sum; while((scanf("%d",&n)!=EOF)&&(…… 题解列表 2022年11月02日 0 点赞 0 评论 121 浏览 评分:0.0
A+B for Input-Output Practice (IV) 上才艺,新手入 摘要:解题思路:注意事项:sum每次赋初始值参考代码:#include<stdio.h>int main(){ int n,sum=0; while(scanf("%d",&n)&&n){ int a[n…… 题解列表 2022年12月19日 0 点赞 0 评论 78 浏览 评分:0.0
编写题解 1088: A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:/*输入格式输入包含多个测试用例。每个测试用例包含一对整数 a 和 b,每行一对整数。包含 0 0 的测试用例将终止输入,并且不会处理此测试用例。 输出格式对于每对输入…… 题解列表 2022年12月26日 0 点赞 0 评论 117 浏览 评分:0.0
A+B for Input-Output Practice (IV) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i,n=0; int a[100]={0}; while(ci…… 题解列表 2023年01月18日 0 点赞 0 评论 128 浏览 评分:0.0