# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26854 | TAMREF | 질문 (CEOI14_question_grader) | C++11 | 1253 ms | 25672 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 h=0;
for(;x&1<<h == y&1<<h;++h);
return 2*h + 1 + (x&1<<h?1:0);
}
int decode (int n, int q, int h) {
--h;
return q&1<<(h/2)?(h%2):!(h%2);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |