OJ-Problems-Source/CodeVS/1202_冰封.c

19 lines
228 B
C
Raw Normal View History

2016-07-06 14:28:18 +08:00
/*
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>:ǧ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>Ŀ:p1202 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
#include <stdio.h>
int main(int argc, char* argv[]) {
int a, b = 0;
scanf("%i", &a);
while(a--){
int l;
scanf("%i", &l);
b += l;
}
printf("%i", b);
return 0;
}