#ifndef SUN
#include "cave.h"
#endif // SUN
#include <bits/stdc++.h>
using namespace std;
#ifdef SUN
void answer(int S[], int D[]) {
}
int tryCombination(int S[]) {
}
#endif // SUN
void exploreCave(int n) {
int s[n + 2], d[n + 2];
for (int i = 0; i < n; ++i) d[i] = i, s[i] = 0;
for (int step = 0; step < n; ++step) {
int get = tryCombination(s);
if (get == -1) {
answer(s, d);
return;
}
if (get < step + 1) s[step] ^= 1;
}
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... |