| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 992895 | mohammedMonem | 동굴 (IOI13_cave) | C++14 | 22 ms | 348 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
#include <bits/stdc++.h>
using namespace std;
void exploreCave(int N) {
int comp[N], cmp[N] = {0}, v[N];
for (int i = 0; i < N; ++i) {
memset(comp, 0, N);
if (tryCombination(comp)) {
memset(comp, 1, N);
}
int s = 0, e = N - 1;
while (s <= e) {
int md = (s + e) / 2;
memset(comp + s, !comp[s], md);
if (tryCombination(comp) == i) {
v[i] = s, cmp[i] = comp[s];
e = md - 1;
} else {
s = md + 1;
}
memset(comp + s, !comp[s], md);
}
}
answer(cmp, v);
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
