| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 108282 | maruii | 동굴 (IOI13_cave) | C++14 | 1517 ms | 596 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
#include <memory.h>
int S[5000], D[5000];
bool F[5000];
void exploreCave(int N) {
memset(F, 0, sizeof(F));
for(int i=0; i<N; ++i){
for(int j=0; j<N; ++j) if(!F[j]) S[j] = 0;
int t = i != tryCombination(S), x = 0;
for(int j=0; j<13; ++j){
for(int k=0; k<N; ++k) if(!F[k]) S[k] = t ^ ((k>>j) & 1);
x |= (tryCombination(S) != i) << j;
}
S[x] = t ^ 1;
D[x] = i;
F[x] = 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... | ||||
