#include "cave.h"
#include<bits/stdc++.h>
using namespace std ;
void exploreCave(int N) {
int arr[N] = {} , pos[N];
memset(arr , 0 , sizeof arr);
for(int i = 0 ; i < N ; i ++){
int ret = tryCombination(arr);
for(int j = i + 1 ; j < N ; j ++)arr[j] = 1 ;
int ret2 = tryCombination(arr);
if(ret == ret2)arr[i] = 1 , pos[i] = ret ;
else{
arr[i] = 1 ;
ret = tryCombination(arr);
pos[i] = ret ;
arr[i] = 0 ;
}
for(int j = i + 1 ; j < N ; j ++)
arr[j] = 0 ;
}
answer(arr , pos);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
40 ms |
512 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
73 ms |
384 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
40 ms |
512 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |