17 lines
273 B
C
17 lines
273 B
C
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
int n;
|
|
if (scanf("%d", &n) != 1) return 1;
|
|
|
|
long long sum = 0;
|
|
for (int i = 0; i < n; i++) {
|
|
int x;
|
|
if (scanf("%d", &x) != 1) return 1;
|
|
sum += x;
|
|
}
|
|
|
|
printf("%lld\n", sum);
|
|
return 0;
|
|
}
|