#include #include using namespace std; int main() { int T; cin >> T; for (int i = 0; i < T; i++) { int N; cin >> N; vector f(N); for (int j = 0; j < N; j++) { cin >> f[j]; } int s = 0; for (int j = 0; j < N; j++) { s += f[j]; } cout << s << endl; } return 0; }