OJ-Problems-Source/HDOJ/1094_autoAC.cpp
2016-08-12 10:52:18 +08:00

17 lines
290 B
C++

#include <stdio.h>
int main(void)
{
int n, a, sum, i;
while(scanf("%d", &n) != EOF)
{
sum = 0;
for(i = 0; i < n; i ++)
{
scanf("%d", &a);
sum = sum + a;
}
printf("%d\n", sum);
}
return 0;
}