# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
25494 | Bruteforceman | Dancing Elephants (IOI11_elephants) | C++11 | 6546 ms | 25108 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 "elephants.h"
#include "bits/stdc++.h"
using namespace std;
int n;
int a[150010];
int len;
const int magic = 390;
vector <int> v[1000];
vector <int> dp[1000];
vector <int> nxt[1000];
int bucket[150010];
int tot;
int counter;
bool cmp(int x, int y) {
return a[x] < a[y];
}
int search(int b, int e, int block, int value) {
if(b == e) {
return a[v[block][b]] <= value ? b : -1;
}
int m = (b + e + 1) >> 1;
if(a[v[block][m]] <= value) return search(m, e, block, value);
else return search(b, m-1, block, value);
}
void get_done(int b) {
if(v[b].empty()) return ;
# | 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... |