# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
168722 | mhy908 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 1490 ms | 79720 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.
int c[930],r,f,i=1;
int encode(int N,int x,int y){
if(!f)for(;i<=4096;i++)if(__builtin_popcount(i)==6)c[++r]=i;f=1;
return __builtin_ffs(c[x]&(c[x]^c[y]));
}
int c[930],r,f,i=1;
int decode(int N,int q,int h){
if(!f)for(;i<=4096;i++)if(__builtin_popcount(i)==6)c[++r]=i;f=1;
return c[q]&(1<<(h-1))?1:0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |