#include using namespace std; int main() { int t; cin >> t; while (t--) { int n; cin >> n; int ans = 0; for (int i = 0; i < n; i++) { int f; cin >> f; ans += f; } cout << ans << '\n'; } return 0; }