# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
988047 | badont | Cave (IOI13_cave) | C++17 | 272 ms | 600 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 <cassert>
#include <iostream>
#include <vector>
using namespace std;
void exploreCave(int N) {
/* ... */
int which_lock[N];
int correct_choice[N];
int buffer[N];
for (int i = 0; i < N; i++)
which_lock[i] = correct_choice[i] = buffer[i] = -1;
for (int iter = 0; iter < N; iter++) {
vector<int> todo;
todo.reserve(N);
for (int i = 0; i < N; i++) {
if (which_lock[i] != -1) {
buffer[i] = correct_choice[i];
} else {
buffer[i] = 0;
todo.push_back(i);
}
assert(buffer[i] != -1);
}
int ret = tryCombination(buffer);
int open_value = 1;
# | 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... |