Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
48424 向安琪 A+B 输入输出练习V C++ Accepted 7 MS 272 KB 318 2023-05-28 14:05:05

Tests(1/1):


Code:

#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; }