# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
564497 | cpp219 | 동굴 (IOI13_cave) | C++17 | 612 ms | 372 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include"cave.h"
#define ll int
#define ld long double
#define fs first
#define sc second
#define debug(y) cout<<y,exit(0)
using namespace std;
typedef pair<ll,ll> LL;
const ll N = 5e3 + 9;
const ll inf = 1e9 + 7;
ll s[N],d[N],known[N],respon,n;
void ask(){
respon = tryCombination(s);
if (respon == -1) respon = inf;
}
void setU(ll l,ll r,ll val){
for (ll i = 0;i < n;i++)
if (!known[i]) s[i] = val;
}
void exploreCave(int num){
n = num;
for (ll cur = 0;cur < n;cur++){
setU(0,n - 1,0); ask(); ll now = 1;
if (respon > cur) now = 0;
ll l,m,h; l = 0; h = n - 1;
# | 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... |