| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 985090 | user736482 | 동굴 (IOI13_cave) | C++17 | 148 ms | 564 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include<cave.h>
using namespace std;
int result[5000],match[5000],sent[5000];
bool iflastopen,fixed_[5000];
void change(int a, int b, int c){
for(int i=a;i<=b;i++){
if(!fixed_[i])
sent[i]= c;
}
}
void exploreCave(int n){
for(int j=0;j<n;j++){
change(0,n-1,1);
if(tryCombination(sent)>j)
iflastopen=1;
else
iflastopen=0;
int pocz=0;
int kon=n-1;
while(pocz!=kon){
int sr=(pocz+kon)/2;
change(pocz,sr,iflastopen);
int ak=tryCombination(sent);
if(ak > j)
{
kon=sr;
}
else{
pocz=sr+1;
}
}
sent[pocz] = iflastopen;
match[j]=pocz;
fixed_[pocz]=1;
}
answer(sent,match);
}
| # | 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... | ||||
