#include <ctime>
#include <cassert>
#include <cstdio>
#include <vector>

using namespace std;

#define forn(i, n) for (int i = 0; i < (int)(n); i++)

const int N = (int)1e7;

const int maxMem = (int)1e8;

char mem[maxMem];
int mpos = 0;

inline char *my_alloc( int n )
{
  char *res = mem + mpos;
  mpos += n;
  assert(mpos <= maxMem);
  return res;
}

inline void* operator new( size_t s )   { return (void *)my_alloc(s); }
inline void* operator new[]( size_t s ) { return (void *)my_alloc(s); }
inline void operator delete( void * )   { }
inline void operator delete[]( void * ) { }

vector <int> v[N];

int main()
{
  forn(i, N)
  {
    //v[i].resize(1);
    v[i].push_back(i);
  }
  printf("time = %.2f\n", (double)clock() / CLOCKS_PER_SEC);
  return 0;
}