Run ID:93959

提交时间:2024-10-19 16:34:31

/* Input 2 4 1 2 3 4 5 1 2 3 4 5 Output 10 15 */ #include <stdio.h> int main() { int n,m; // n 多少行, m 多少列 i++/ ++i(区别) i=i+1 scanf("%d",&n); for( int i=1 ; i<=n ; i++ ) // start ; end ; increment { scanf("%d",&m); int tot = 0,t; for( int j=1 ; j<=m ; j++ ) { scanf("%d",&t); tot = tot + t; } printf("%d\n",tot); } return 0; }