Run ID:48424
提交时间:2023-05-28 14:05:05
#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main() { int N,M,a; cin >> N; while(N--){ cin >> M; int sum = 0; while(M--){ cin >> a; sum += a; } cout << sum << endl; } return 0; }