import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner cin=new Scanner(System.in);
int t;
t=cin.nextInt();
for(int j=1;j<=t;j++)
{
int n;
n=cin.nextInt();
int sum=0;
for(int i=1;i<=n;i++)
{
int x;
x=cin.nextInt();
sum+=x;
}
System.out.println(sum);
if(j<t)
System.out.println();
}
}
}
hdu acm1096A+B for Input-Output Practice (VIII)(java)
最新推荐文章于 2020-03-04 14:14:26 发布