#include #define rep(i,l,r) for(int i=(l); i<(r); i++) #define INF ((1LL<<62)-(1LL<<31)) using namespace std; using ll = long long; using inv = vector; using stv = vector; using GraphI = vector; using position = pair; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int T; cin >> T; rep(j,0,T){ int N; cin >> N; int ans = 0; rep(i,0,N){ int a; cin >> a; ans += a; } cout << ans << "\n"; } }