# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1172272 | AlgorithmWarrior | Divide and conquer (IZhO14_divide) | C++20 | 76 ms | 3144 KiB |
#include <bits/stdc++.h>
using namespace std;
long long const INF=1e18;
int const MAX=1e5+5;
int const LOG=20;
int n;
int ub(int x){
return x&(-x);
}
void maxself(long long& x,long long val){
if(x<val)
x=val;
}
struct AIB{
long long maxim[MAX];
int n;
void init(int n){
this->n=n;
int i;
for(i=1;i<=n;++i)
maxim[i]=-INF;
}
void upd(long long val,int poz){
while(poz<=n){
maxself(maxim[poz],val);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |