作者在 2013-04-29 16:09:50 发布以下内容
#include <stdio.h>
int main(void)
{
int s, n, tmp, sum;
scanf("%d", &n);
while(n-- && (scanf("%d", &s) == 1))
{
sum = 0;
while(s--)
{
scanf("%d", &tmp);
sum += tmp;
}
printf("%d\n", sum);
}
return 0;
}