Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152920 邵栋-栋栋老师 A+B 输入输出练习IV C++ Accepted 5 MS 272 KB 340 2026-05-05 20:28:15

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int N; while(cin>>N) { int sum=0; if(N==0) { break; } for(int i=0;i<N;++i) { int x; cin>>x; sum+=x; } cout<<sum<<endl; } return 0; }