Run ID:158708
提交时间:2026-08-22 16:49:05
#include<bits/stdc++.h> using namespace std; int main() { int N,a,s=0; while(cin>>N) { if(N=0) { return 0; } while(N--) { cin>>a; s+=a; } cout<<s<<endl; } return 0; }