# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
927224 | Nurislam | Wall (IOI14_wall) | C++14 | 818 ms | 71508 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 "wall.h"
#include <bits/stdc++.h>
//~ #include "grader.cpp"
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define ll long long
typedef vector<ll> vi;
typedef pair<ll,ll> pii;
typedef vector<pii> vii;
const int N = 2e6+5;
int add[N*4],rem[N*4];
void build(int v,int tl,int tr){
if(tl==tr){
add[v]=0;
rem[v]=1e9;
}
else{
int tm=(tl+tr)/2;
build(v*2,tl,tm);
build(v*2+1,tm+1,tr);
}
}
void push(int v){
add[v*2]=max(add[v*2],add[v]);
rem[v*2]=max(rem[v*2],add[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... |