Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
94279 陈铎文 A+B 输入输出练习V C++ Accepted 4 MS 276 KB 208 2024-10-20 10:41:39

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,n; int sum; cin>>n; while(n--){ cin>>a; sum=0; while(a--){ int n; cin>>n; sum+=n; } cout<<sum<<endl; } }