| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 598846 | pakhomovee | Cave (IOI13_cave) | C++17 | 521 ms | 392 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 "cave.h"
#include <algorithm>
using namespace std;
void exploreCave(int N) {
int match[N];
for (int i = 0; i < N; ++i) {
int S[N];
int l = 0, r = N;
while (l + 1 < r) {
int m = (l + r) / 2;
fill(S, S + N, 1);
fill(S, S + m, 0);
for (int j = 0; j < i; ++j) {
S[match[j]] = 0;
}
if (tryCombination(S) == i) {
l = m;
} else {
r = m;
}
}
match[i] = l + 1;
}
int res[N];
fill(res, res + N, 0);
answer(res, match);
}
| # | 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... | ||||
