# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
720866 | WonderfulWhale | Global Warming (CEOI18_glo) | C++17 | 355 ms | 15356 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;
#define pb push_back
#define st first
#define nd second
#define pii pair<int, int>
#define sz(x) (int)(x).size()
#define all(x) (x).begin(), (x).end()
struct SegTree {
const static int T = 1<<18;
int t[2*T];
void update(int x, int val) {
x+=T;
t[x] = max(t[x], val);
x/=2;
while(x) {
t[x] = max(t[2*x], t[2*x+1]);
x/=2;
}
}
int query(int l, int r) {
l+=T;
r+=T;
int ret = max(t[l], t[r]);
while(l/2!=r/2) {
if(l%2==0) ret = max(ret, t[l+1]);
if(r%2==1) ret = max(ret, t[r-1]);
l/=2;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |