# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
520710 | peti1234 | Cave (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 <bits/stdc++.h>
#include "cave.h"
using namespace std;
int par[5000], s[5000];
// par-mihez tartozik, 0-down, 1-up
void exploreCave(int n) {
for (int i=0; i<n; i++) {
par[i]=i;
}
while (true) {
int x=tryCombination(t);
if (x==-1) {
break;
}
s[x]=1;
}
answer(t, par);
}