# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
16652 |
2015-09-03T01:43:33 Z |
eaststar |
Cave (IOI13_cave) |
C++14 |
|
99 ms |
512 KB |
#include "cave.h"
int a[5010],b[5010],chk[5010];
void exploreCave(int n){
int i,j,s,e,m,t,p;
for(i=0;i<n;++i){
t=tryCombination(a);
s=0,e=n-1;
while(s<e){
m=(s+e)/2;
for(j=s;j<=m;++j)if(!chk[j])a[j]=!a[j];
p=t;
(p==i)^(t=tryCombination(a)==i)?e=m:s=m+1;
}
a[s]=!a[s],b[s]=i,chk[s]=1;
}
answer(a,b);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
23 ms |
384 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
99 ms |
512 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
432 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
28 ms |
384 KB |
Answer is wrong |
2 |
Halted |
0 ms |
0 KB |
- |