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 "graderlib.cpp"
#include "cave.h"
using namespace std;
const int mxN = 5005;
void exploreCave(int n) {
int doors[n];
int pos[n];
fill(doors, doors+n, 0);
iota(pos, pos+n, 0);
while(true) {
int first = tryCombination(doors);
if(first == -1) break;
else
doors[first] = !doors[first];
}
answer(doors, pos);
}
// int main() {
// int N = init();
// exploreCave(N);
// return 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... |