# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
306390 | amunduzbaev | 동굴 (IOI13_cave) | C++14 | 77 ms | 512 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
#include <bits/stdc++.h>
using namespace std;
void exploreCave(int n) {
int s[n],d[n];
memset(s,0,sizeof(s));
bool ok=0;
int st;
for(int i=0;i<n-1;i++){
st=i;
s[i]=0;
s[i+1]=0;
int x = tryCombination(s);
if(x==-1){
ok=1;
break;
}
s[i+1]=1;
int y = tryCombination(s);
if(y==-1){
ok=1;
break;
}
if(x==y){
s[i]=1;
}else{
s[i]=1;
int a=tryCombination(s);
if(a==-1){
ok=1;
break;
}
s[i]=0;
}
}
int id=tryCombination(s);
if(id!=-1){
s[n-1]=(s[n-1]?0:1);
}
for(int i=0;i<n;i++){
s[i]=(s[i]? 0:1);
int ind=tryCombination(s);
d[i]=ind;
s[i]=(s[i]? 0:1);
}
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... |