Run ID:93961
提交时间:2024-10-19 16:36:27
#include <stdio.h> int main() { int n, m, t; scanf("%d", &n); for(int i = 1 ; i <= n ; i++) { scanf("%d", &m); int tot = 0; for(int j = 1 ; j <= m ; j++) { scanf("%d", &t); tot = tot + t; } printf("%d\n", tot); } return 0 ; }