# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1068670 | TheQuantiX | Meetings (IOI18_meetings) | C++17 | 21 ms | 2492 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>
#include "meetings.h"
using namespace std;
using ll = long long;
constexpr ll INF = 1000000000LL;
ll n, m, q, k, x, y;
struct segtree {
ll n;
vector<ll> tr;
void build(ll x, ll l, ll r, vector<ll> &v) {
if (l == r) {
tr[x] = v[l];
return;
}
ll mid = (r + l) / 2;
build(x * 2 + 1, l, mid, v);
build(x * 2 + 2, mid + 1, r, v);
tr[x] = max(tr[x * 2 + 1], tr[x * 2 + 2]);
}
segtree(vector<ll> &v) {
n = v.size();
tr.resize(n * 4);
build(0, 0, n - 1, 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |