#include <cassert>
/** Begin fast allocation */
const int MAX_MEM = 1e8;
int mpos = 0;
char mem[MAX_MEM];
inline void * operator new ( size_t n ) {
assert((mpos += n) <= MAX_MEM);
return (void *)(mem + mpos - n);
}
inline void operator delete ( void * ) { } // must have!
/** End fast allocation */
//inline void * operator new [] ( size_t ) { assert(0); }
//inline void operator delete [] ( void * ) { assert(0); }