# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
169292 | AlexLuchianov | 동굴 (IOI13_cave) | C++14 | 1171 ms | 564 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
#include <vector>
using namespace std;
void exploreCave(int N) {
int sol[N] = {0};
int door[N] = {0}, seen[N] = {0};
for(int i = 0; i < N; i++){
if(i != tryCombination(sol))
for(int j = 0; j < N; j++)
if(seen[j] == 0)
sol[j] ^= 1;
int from = 0, to = N - 1;
while(from < to){
int mid = (from + to) / 2;
for(int j = 0; j <= mid; j++)
if(seen[j] == 0)
sol[j] ^= 1;
int result = tryCombination(sol);
for(int j = 0; j <= mid; j++)
if(seen[j] == 0)
sol[j] ^= 1;
if(i == result)
from = mid + 1;
else
to = mid;
}
# | 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... |