mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 09:58:49 +00:00
21 lines
263 B
C++
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;
|
|
}
|