Run ID:136476

提交时间:2025-11-15 11:23:27

#include <bits/stdc++.h> using namespace std; int main() { int i,j,k,n,s,a[100]; i=0; while (i<n) { cin>>j; k=s=0; while (k<j) { cin>>a[k]; s=s+a[k]; k++; } cout<<s<<endl;; i++; } return 0; }