#include<iostream> #include<string> using namespace std; int main(){ int a, b; int total; int cases; cin>>cases; for(int i = 0; i < cases; i++){ cin>>a; total = 0; for(int i = 0; i < a; i++){ cin>>b; total += b; } cout<<total<<endl; } }