Submission #26797

# Submission time Handle Problem Language Result Execution time Memory
26797 2017-07-06T04:41:03 Z baactree Question (Grader is different from the original contest) (CEOI14_question_grader) C++14
0 / 100
0 ms 25672 KB
int encode (int n, int x, int y) {
    for(int i=0;i<10;i++){
        int a=x&1;
        int b=y&1;
        if(a!=b){
            return i*2+a;
        }
        x/=2;
        y/=2;
    }
    return 0;
}
int decode (int n, int q, int h) {
    int k=h&1;
    h/=2;
    while(h--)
        q/=2;
    return (q&1)==k;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 25672 KB Output isn't correct
2 Incorrect 0 ms 25672 KB Output isn't correct