# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
316341 | CodeTiger927 | Pinball (JOI14_pinball) | C++14 | 850 ms | 141944 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.
using namespace std;
#include <iostream>
#define MAXN 100005
using namespace std;
struct node {
int l, r;
long long v;
node *c[2];
node(int l, int r) : l{l}, r{r} {
v = 1e17;
c[0] = nullptr;
c[1] = nullptr;
}
void upd(int x,long long v) {
this -> v = min(this -> v,v);
if (l != r) {
int m = l + (r - l) / 2;
if (x <= m) {
if (!c[0]) c[0] = new node(l, m);
c[0] -> upd(x, v);
} else {
if (!c[1]) c[1] = new node(m + 1, r);
c[1] -> upd(x, v);
}
}
}
# | 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... |