# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
733635 |
2023-05-01T06:00:06 Z |
khangrl |
Cave (IOI13_cave) |
C++14 |
|
24 ms |
372 KB |
#include "cave.h"
void exploreCave(int N) {
int pos[N], ans[N], k, i;
for(i=0; i<N; i++){
k=tryCombination(ans);
if(k==-1){
ans[i]=1;
pos[i]=tryCombination(ans);
ans[i]=0;
continue ;
}
/*ans[i+1]=1;
if(k==tryCombination(ans)){
pos[i]=k;
}
else{
ans[i]=1;
pos[i]=tryCombination(ans);
ans[i]=0;
}
ans[i+1]=0;*/
}
answer(ans, pos);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
24 ms |
372 KB |
Output is correct |
2 |
Incorrect |
0 ms |
212 KB |
Answer is wrong |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |