#include int main() { int t; scanf("%d", &t); while(t--) { int i, n; long long a, sum=0; scanf("%d", &n); for(i=0; i