SHARE
TWEET

2 A

kot_mapku3 Jun 2nd, 2020 496 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.     ios::sync_with_stdio(false);
  7.     cin.tie(nullptr);
  8.  
  9.     int n;
  10.     long long sum = 0;
  11.     cin >> n;
  12.     long long x;
  13.  
  14.     for (int i = 0; i < n; ++i) {
  15.         cin >> x;
  16.         sum += x;
  17.     }
  18.  
  19.     cout << sum;
  20.  
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top