# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
95500 | popovicirobert | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 1315 ms | 124600 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) {
for(int bit = 0; bit < 10; bit++) {
if((x & (1 << bit)) != (y & (1 << bit))) {
return bit * 2 + ((x & (1 << bit)) > 0) + 1;
}
}
}
int decode (int N, int q, int h) {
h--;
int bit = h / 2;
if(((q & (1 << bit)) > 0) == (h & 1)) {
return 1;
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |