# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
868846 | AtabayRajabli | Cave (IOI13_cave) | C++17 | 155 ms | 508 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 "cave.h"
void exploreCave(int n) {
int a[n] = {0}, ans[n] = {0}, d[n] = {0};
int q = 0;
int j = 0;
while(j < n)
{
int q = tryCombination(a);
for(; j<q; j++)
{
ans[j] = a[j];
d[j] = j;
}
if(j < n)a[j] ^= 1;
}
answer(ans, d);
}
Compilation message (stderr)
# | 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... |