이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
void exploreCave(int n) {
int S[n];
int D[n];
for(int i = 0; i <= n - 1; i++){
S[i] = 0;
}
for(int i = 0; i <= n - 1; i++){
int kture = tryCombination(S);
if(kture == i){
continue;
}
for(int j = 0; j <= n - 1; j++){
if(S[j] == 0){
S[j] = 1;
int kture = tryCombination(S);
if(kture == i){
continue;
}
S[j] = 0;
}else{
S[j] = 0;
int kture = tryCombination(S);
if(kture == i){
continue;
}
S[j] = 1;
}
}
}
for(int i = 0; i <= n - 1; i++){
if(S[i] == 0){
S[i] = 1;
int kture = tryCombination(S);
D[i] = kture;
S[i] = 0;
}else{
S[i] = 0;
int kture = tryCombination(S);
D[i] = kture;
S[i] = 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... |