Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158071 郦辰希 A+B 输入输出练习IV C++ Accepted 6 MS 272 KB 257 2026-08-20 15:44:00

Tests(1/1):


Code:

#include <bits/stdc++.h> using namespace std; int main(){ int N,a=0,b; cin>>N; while(N!=0){ a=0; for(int j=0;j<N;j++){ cin>>b; a+=b; } cout<<a<<"\n"; cin>>N; } }