| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 125382 | khulegub | 동굴 (IOI13_cave) | C++14 | 419 ms | 584 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
/*
HEY YOU
YE YOU
STOP STALKING
*/
#include "cave.h"
#include <bits/stdc++.h>
int n;
bool lock[5005];
int s[5005], d[5005];
void soli(int l, int r){
for (int i = l; i <= r; i++){
if(!lock[i]) s[i] = (s[i] ? 0 : 1);
}
}
//dont know wtf is wrong??????
void exploreCave(int N) {
n = N;
memset(s, 0, sizeof s);
memset(lock, 0, sizeof lock);
for (int i = 0; i < n; i++){
if(tryCombination(s) == i) soli(0, n - 1);
int l = 0, r = n - 1;
while (l != r){
int mid = (l + r) >> 1;
soli(l, mid);
int tmp = tryCombination(s);
soli(l, mid);
if(tmp == i){ //zuun tald
r = mid;
}
else{ //baruun tald
l = mid + 1;
}
}
d[l] = i;
lock[l] = 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... | ||||
