# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
97425 | tincamatei | Teams (IOI15_teams) | C++14 | 2628 ms | 525312 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.
#include "teams.h"
#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 500000;
const int NNODES = 15000000;
struct AintPersistent {
AintPersistent *sl, *sr;
int val;
AintPersistent() {
val = 0;
sl = sr = NULL;
}
} cache[NNODES];
int topcache;
vector<AintPersistent*> root;
AintPersistent* mynew() {
return &cache[topcache++];
}
AintPersistent* init(int l = 1, int r = MAX_N) {
AintPersistent *rez = mynew();
if(l < r) {
int mid = (l + r) / 2;
rez->sl = init(l, mid);
rez->sr = init(mid + 1, r);
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |