Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158638 陈襗葳 A+B 输入输出练习V C++ Accepted 6 MS 272 KB 283 2026-08-22 16:11:57

Tests(1/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int N; cin>>N; for (int i=0;i<N;i++) { int M; cin>>M; int sum=0,j; for (int i=0;i<M;i++){ cin>>j; sum+=j; } cout<<sum<<endl; } }