# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
405722 | Victor | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 2 ms | 400 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.
#define rep(i, a, b) for (int i = a; i < (b); ++i)
int encode(int n, int x, int y) {
rep(i, 0, 12) if (x & 1 << i && !(y & 1 << i)) return i + 1;
return 0;
}
int decode(int n, int q, int h) {
return q & 1 << h - 1 ? 1 : 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |