답안 #874316

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
874316 2023-11-16T16:31:31 Z asli_bg 동굴 (IOI13_cave) C++11
0 / 100
1 ms 348 KB
#include "cave.h"

const int MAXN=5e3+3;
int S[MAXN];
int D[MAXN];

void exploreCave(int N) {
    /* ... */

    for(int i=0;i<N;i++){
        S[i]=0;
        D[i]=i+1;
    }

    int cev=tryCombination(S);

    while(cev!=-1){
        S[cev-1]=1;
        cev=tryCombination(S);
    }

    answer(S,D);

}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB too much calls on tryCombination()
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB Answer is wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Answer is wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Answer is wrong
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 344 KB too much calls on tryCombination()
2 Halted 0 ms 0 KB -