0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2025-01-26 19:00:17 +00:00

21 lines
263 B
C++

#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int n, x, sum;
int main() {
std::ios::sync_with_stdio(false);
cin >> n;
while (n--) {
cin >> x;
sum += x;
}
cout << sum << endl;
return 0;
}