| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 142617 | 范照赫 | A+B 输入输出练习IV | C++ | Accepted | 4 MS | 316 KB | 576 | 2026-01-11 14:48:07 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() #include<bits/stdc++.h> using namespace std; int main(){ int N,c[10000]={0},b=0,m; for(int i=1;;i++){ cin>>N; if(N==0){ break; } b++; for(int q=1;q<=N;q++){ cin>>m; c[i]+=m; } } for(int i=1;i<=b;i++){ cout<<c[i]<<endl; } return 0; }