Guest User

I/O with cin/cout

a guest
Nov 29th, 2015
592
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define N 500000
  5. #define forn(i,n) for (unsigned i = 0; i < n; ++i)
  6.  
  7. int main(void)
  8. {
  9.     ios::sync_with_stdio(false);
  10.     cin.tie(0); cout.tie(0);
  11.  
  12.     vector<int> v(N);
  13.     forn(i, N) {
  14.     cin >> v[i];
  15.     }
  16.     forn(i, N) {
  17.     cout << v[i] << " ";
  18.     }
  19. }
RAW Paste Data