Advertisement
Guest User

I/O with cin/cout (unoptimized)

a guest
Nov 29th, 2015
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement