# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
985413 | SzymonKrzywda | Cave (IOI13_cave) | C++17 | 1 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include"cave.h"
#include <bits/stdc++.h>
using namespace std;
int tryCombination(int S[]);
void answer(int S[],int D[]);
void exploreCave(int N){
int D[N],S[N],w=0,w_2=0;
for (int i=0; i<N; i++) D[i] = -1;
bool good[N];
//int S_2[N];
// 0 0 0 0 0
// 1 1 1 1 1
// 1 1 1 1 0
//1110
//3102
for (int i=0; i<N; i++){
w = tryCombination(S);
if (!(w == -1 || w > i)){
for (int i=0; i<N; i++){
if (D[i] == -1) S[i] = (S[i]+1)%2;
}
//w = tryCombination(S);
}
//cout << i << " "<< w << endl;
//if(w==-1) break;
//if (w > i) continue;
for (int j=0; j<N; j++){
S[j] = (S[j]+1)%2;
w_2 = tryCombination(S);
if (w_2 == i){
D[j] = i;
S[j] = (S[j]+1)%2;
break;
}
S[j] = (S[j]+1%2);
}
}
answer(S,D);
}
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |