Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <algorithm>
- #include <vector>
- #include <string>
- #include <set>
- using namespace std;
- int main () {
- int n;
- cin >> n;
- long long ans = 0;
- while (n--) {
- int x;
- cin >> x;
- ans += x;
- }
- cout << ans <<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement