| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 377801 | jlallas384 | Cave (IOI13_cave) | C++14 | 18 ms | 512 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "cave.h"
using namespace std;
// binary search
// flip all left if first open door doesnt change
void exploreCave(int N){
int ans[N] = {};
if(tryCombination(ans) == -1){
int arr[N];
for(int i = 0; i < N; i++){
ans[i] ^= 1;
arr[i] = tryCombination(ans);
ans[i] ^= 1;
}
answer(ans,arr);
}
while(1){
int resp = tryCombination(ans);
if(resp == -1) break;
ans[resp] ^= 1;
}
int arr[N];
for(int i = 0; i < N; i++){
arr[i] = i;
}
answer(ans,arr);
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
