Submission #625910

# Submission time Handle Problem Language Result Execution time Memory
625910 2022-08-11T01:52:30 Z palilo Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
0 / 100
7000 ms 416 KB
auto encode(int n, int x, int y) -> int {
    for (int i = 0;; ++i) {
        if ((x >> i & 1) && (~y >> i & 1)) {
            return i;
        }
    }
}
auto decode(int n, int q, int h) -> int {
    return q >> h & 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 416 KB the encoded value must be greater than or equal to 1
2 Execution timed out 7049 ms 208 KB Time limit exceeded