https://www.acmicpc.net/problem/9085
#include <iostream>
using namespace std;
int main() {
int t;
cin>>t;
for(int i=0;i<t;i++){
int sum=0;
int n;
cin>>n;
for(int j=0;j<n;j++){
int a;
cin>>a;
sum+=a;
}
cout<<sum<<"\n";
}
}