#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
int s[5050], d[5050];
void exploreCave(int n) {
    // int s[n], d[n];
    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... |