Submission #625918

# Submission time Handle Problem Language Result Execution time Memory
625918 2022-08-11T02:11:46 Z palilo Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
27 / 100
4393 ms 24260 KB
auto encode(int n, int x, int y) -> int {
    const auto z = x ^ y;
    for (int i = 0;; ++i) {
        if (z >> i & 1) {
            return (i << 1 | (y >> i & 1)) + 1;
        }
    }
}
auto decode(int n, int q, int h) -> int {
    --h;
    return (q >> (h >> 1) ^ h) & 1;
}
# Verdict Execution time Memory Grader output
1 Partially correct 4379 ms 24260 KB Output is partially correct - maxh = 20
2 Partially correct 4393 ms 24032 KB Output is partially correct - maxh = 20