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 "cave.h"
#include <bits/stdc++.h>
#define try tryCombination
using namespace std;
const int MAXN = 5e3+5;
int S[MAXN];
int D[MAXN];
void exploreCave(int N) {
iota(D,D+N,0);
for(int i=0;i<N;i++){
int t=try(S);
if(t==-1){
answer(S,D);
return;
}else if(t==i)S[i]=1;
}
answer(S,D);
}
# | 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... |