Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93966 汤弘毅 A+B 输入输出练习V C Accepted 1 MS 200 KB 290 2024-10-19 16:41:34

Tests(1/1):


Code:

//1011//CRTL+N(NEW),CRTL+S(SAVE) # include <stdio.h> /* */ int main(){ int n; scanf("%d",&n); for(int i=1;i<=n;i++){ int m; scanf("%d",&m); int tot=0,t=0; for(int j=1;j<=m;j++){ scanf("%d",&t); tot = tot + t; } printf("%d\n",tot); } }