# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
347043 | ACmachine | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 2310 ms | 24284 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 encode (int n, int x, int y) {
int res;
if(x > y){
for(int j = 0; j < 12; ++j){
if((x & (1 << j))&&!(y & (1 << j))){
res = j;
break;
}
}
}
else{
for(int j = 0; j < 12; ++j){
if(!(x & (1 << j)) && (y & (1 << j))){
res = j;
break;
}
}
}
return res + 1;
}
int decode (int n, int q, int h) {
return (q & (1 << (h-1)));
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |