# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95480 | forestryks | Printed Circuit Board (CEOI12_circuit) | C++14 | 89 ms | 7160 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#pragma GCC optimize("Ofast")
/**
* Author: Sergey Kopeliovich (Burunduk30@gmail.com)
*/
#define VERSION "0.1.5"
#include <cassert>
#include <cstdio>
#include <algorithm>
/** Fast allocation */
#define FAST_ALLOCATOR_MEMORY (1024*1024*20)
#ifdef FAST_ALLOCATOR_MEMORY
int allocator_pos = 0;
char allocator_memory[(int)FAST_ALLOCATOR_MEMORY];
inline void * operator new ( size_t n ) {
char *res = allocator_memory + allocator_pos;
allocator_pos += n;
assert(allocator_pos <= (int)FAST_ALLOCATOR_MEMORY);
return (void *)res;
}
inline void operator delete ( void * ) noexcept { }
//inline void * operator new [] ( size_t ) { assert(0); }
//inline void operator delete [] ( void * ) { assert(0); }
#endif
/** Fast input-output */
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |