Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
149814 杨启宏 A+B 输入输出练习V C++ Accepted 5 MS 268 KB 470 2026-03-17 19:22:48

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int i,j,n,m,s=0,x; cin>>n; for(j=1;j<=n;j++){ cin>>m; for(i=1;i<=m;i++){ cin>>x; s+=x; } cout<<s<<endl; s=0; } return 0; }