# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
564491 | cpp219 | Cave (IOI13_cave) | C++17 | 284 ms | 400 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 = 998244353;
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... |