# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
44717 | Mamnoon_Siam | Cave (IOI13_cave) | C++17 | 796 ms | 692 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>
#include "cave.h"
using namespace std;
#define LEFT 656
#define RIGHT 564
const int maxn = 5005;
int n;
int off[maxn];
int to[maxn];
int pass[maxn];
int assigned[maxn];
vector<int> v;
int at;
int bs(int l, int r) {
if(l == r) {
return v[l];
}
int m = l + r >> 1;
for(int i = 0; i<=m; i++) {
pass[v[i]] = 1;
}
for(int i = m + 1; i <= r; i++) {
pass[v[i]] = 0;
}
int side;
if(off[at] == -1) {
Compilation message (stderr)
# | 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... |