Advertisement
LEGEND2004

Arrays

Sep 1st, 2024
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #pragma GCC optimize("O3")
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. #define int long long
  6. #define double long double
  7. #define endl '\n'
  8. #define fastio ios_base::sync_with_stdio(0); cin.tie(0)
  9.  
  10.  
  11. signed main()
  12. {
  13.     fastio;
  14.  
  15.     int n;
  16.     cin >> n;
  17.     int a[n + 5];
  18.     for(int i = 0; i < n; i++){
  19.         cin >> a[i];
  20.     }
  21.    
  22.     // a[i] --> a massivinin i - ci indexdeki element
  23.  
  24.     /*
  25.     reverse(a , a + n); // tersine
  26.     sort(a , a + n); // siralamaq balacan boyuye
  27.     */
  28.  
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement