제출 #1285839

#제출 시각아이디문제언어결과실행 시간메모리
1285839sunflowerCave (IOI13_cave)C++17
12 / 100
13 ms500 KiB
#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], 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...