# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
59366 | TadijaSebez | Dancing Elephants (IOI11_elephants) | C++11 | 4710 ms | 120028 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 <stdio.h>
#include <algorithm>
using namespace std;
const int N=150050;
const int S=389;
int n,l;
struct Bucket
{
int sz,dp[2*S],rng[2*N],x[2*S];
Bucket(){ sz=0;}
void Build()
{
int i,j=sz;
for(i=sz-1;~i;i--)
{
while(j && x[i]+l<x[j-1]) j--;
if(j==sz)
{
dp[i]=1;
rng[i]=x[i]+l;
}
else
{
dp[i]=dp[j]+1;
rng[i]=rng[j];
}
}
}
void Del(int y)
{
# | 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... |