# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
50294 | faishol27 | Cave (IOI13_cave) | C++14 | 527 ms | 640 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.
////////////////////////////////////////////////
// //
// Author: Muhammad Faishol Amirul Mukminin //
// //
////////////////////////////////////////////////
#include "cave.h"
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pi;
#define PUB push_back
vector<bool> benar(5005,0);
bool isOpen(int pintu, int* S, int N){
for(int i=0;i<N;i++){
if(!benar[i]) S[i] = 0;
}
int tertutup = tryCombination(S);
if(tertutup == -1 || pintu < tertutup) return 0;
return 1;
}
int srcTombol(int pintu, int id, int* S, int N){
vector<int>tmp;
for(int i=0;i<N;i++) if(!benar[i]) tmp.PUB(i);
int l = 0,
# | 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... |