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 <bits/stdc++.h>
using namespace std;
void exploreCave(int N) {
int comp[N];
memset(comp, 0, N);
int try1 = tryCombination(comp);
if (try1 > 0) {
memset(comp, 1, N);
try1 = tryCombination(comp);
}
int v[N];
for (int i = 0; i < N; ++i) {
comp[i] = !comp[i];
int try2 = tryCombination(comp);
v[i] = try2;
comp[i] = !comp[i];
}
answer(v, comp);
}
# | 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... |