Submission #126764

# Submission time Handle Problem Language Result Execution time Memory
126764 2019-07-08T11:26:41 Z Osama_Alkhodairy Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
0 / 100
4 ms 884 KB
int encode (int n, int x, int y) {
   int h = 0;
    while(((x >> h) & 1) == ((y >> h) & 1)) h++;
    if((x >> h) & 1) h += 10;
    return h;
}
int decode (int n, int q, int h) {
	int xbit = h >= 10;
    if(h >= 10) h -= 10;
    if(((q >> h) & 1) == xbit) return 1;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 784 KB Output isn't correct
2 Incorrect 4 ms 884 KB Output isn't correct