# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
261531 | Bruteforceman | Two Antennas (JOI19_antennas) | C++11 | 185 ms | 100216 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;
typedef pair <int, int> pii;
const int maxn = 2e5 + 10;
const long long inf = 1e16;
int n;
struct data {
int h, b, e;
data (int h, int b, int e) : h(h), b(b), e(e) {}
data () {}
} a[maxn];
struct node {
long long opt;
long long minh, maxh;
long long minval, maxval;
void init() {
opt = -inf;
minh = minval = inf;
maxh = maxval = -inf;
}
node () {
this -> init();
}
} t[maxn * 4];
vector <pii> v[maxn];
long long ans[maxn];
void merge(node &c, node d) {
c.minval = min(c.minval, d.minval);
c.maxval = max(c.maxval, d.maxval);
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... |