| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 511109 | bebecanvas | Cave (IOI13_cave) | C++14 | 10 ms | 368 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
#include <queue>
void exploreCave(int N) {
int d[N];
int s[N];
for(int i=0; i<N; i++){s[i]=0;}
while(tryCombination(s)!=-1){
int a= tryCombination(s);
for(int i=0; i<N; i++){
s[i]++; s[i]%=2;
if(tryCombination(s)==-1||tryCombination(s)>a){break;}
s[i]++; s[i]&=2;
}
}
for(int i=0; i<N; i++){
s[i]+=1; s[i]%=2;
int a= tryCombination(s);
d[i]=a;
s[i]+=1; s[i]%=2;
}
answer(s, d);
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
