| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 62835 | mhnd | 동굴 (IOI13_cave) | C++14 | 420 ms | 596 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cave.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
const int N = 2e5+50;
const ll oo = 1e18;
const ll mod = 1e9+7;
int s[5010],d[5010],tmp[5010];
bool vis[5010];
void exploreCave(int n){
for(int i=0;i<n;i++){
int md,lo=0,hi=n-1,ans=0;
int to = tryCombination(s);
int t = (to>i || to==-1)?0:1;
while(lo!=hi){
md = (lo+hi)/2;
for(int i=lo;i<=md;i++)if(!vis[i])s[i]=!s[i];
to = tryCombination(s);
for(int i=lo;i<=md;i++)if(!vis[i])s[i]=!s[i];
int c = (to>i || to==-1)?0:1;
if(c != t)hi = md;
else lo = md+1;
}
s[lo]=t;
d[lo]=i;
vis[lo]=1;
}
answer(s,d);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | 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... | ||||
