# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
868841 | AtabayRajabli | 동굴 (IOI13_cave) | C++17 | 0 ms | 0 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], d[n];
int q = 0;
int j = 0;
while(q != -1)
{
int q = tryCombination(a);
for(; j<q; j++)
{
ans[i] = a[i];
d[i] = i;
}
a[j] ^= a[j];
}
answer(ans, d);
}