Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
4452 | 李宇轩 | A+B 输入输出练习IV | C++ | Accepted | 2 MS | 264 KB | 260 | 2024-08-18 17:18:37 |
#include <iostream> using namespace std; int main(){ int i,k; while(cin>>i){ if(i==0) break; int s=0; for(int j=0;j<i;j++){ cin>>k; s+=k; } cout<<s<<endl; } }