https://www.acmicpc.net/problem/9085
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int t=s.nextInt();
for(int i=0;i<t;i++){
int sum=0;
int n=s.nextInt();
for(int j=0;j<n;j++){
int a=s.nextInt();
sum+=a;
}
System.out.println(sum);
}
}
}