#include<iostream> #include<cstdio> #include<vector> using namespace std; int main() { int t; scanf("%d",&t); while(t--) { int n; scanf("%d",&n); vector<int> a(n); long long sum = 0; for(int i=0;i<n;i++) { scanf("%d",&a[i]); sum += a[i]; } printf("%lld\n",sum); } return 0; }