Guest User

I/O with cin/cout (unoptimized)

a guest
Nov 29th, 2015
204
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.     vector<int> v(N);
  10.     forn(i, N) {
  11.     cin >> v[i];
  12.     }
  13.     forn(i, N) {
  14.     cout << v[i] << " ";
  15.     }
  16. }
RAW Paste Data