#include using namespace std; int main() { int t; cin >> t; vector ans; while (t--) { int n; cin >> n; int a = 0; for (int i = 0; i < n; i++) { int f; cin >> f; a += f; } ans.push_back(a); } for (const auto &a : ans) { cout << a << '\n'; } return 0; }