#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int solve(){ ll N; cin >> N; ll ans = 0; for(int i = 0;i < N;i++){ ll a; cin >> a; ans += a; } cout << ans << endl; return 0; } int main() { ll T,S,D; cin >> T; while(T--){ solve(); } cout << endl; return 0; }