# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
77327 | 298iq | New Home (APIO18_new_home) | C++14 | 5030 ms | 84056 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 <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7;
const int MAXV = 1e8 + 7;
namespace DD {
mt19937 rnd(228);
struct Node {
pair <int, int> p;
int y, mx;
Node *l, *r;
Node(pair <int, int> p_) {
p = p_; y = rnd(); mx = p.second;
l = r = NULL;
}
Node(){}
};
int mx(Node *t) {
if (!t) return -1;
else return t->mx;
}
void relax(Node *t) {
t->mx = max(max(mx(t->l), mx(t->r)), t->p.second);
}
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |