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;
typedef long long ll;
int tryCombination(int S[]);
void answer(int S[] , int D[]);
void exploreCave(int n) {
int s[n];
fill(s, s+n, 0);
for (int i=0; i<n; i++) {
int a=tryCombination(s);
if (a<i&&a!=-1) {
s[i]=!s[i];
}
}
int d[n];
iota(d, d+n, 0);
answer(s, d);
}
# | 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... |