Submission #564706

# Submission time Handle Problem Language Result Execution time Memory
564706 2022-05-19T13:38:47 Z MrDeboo Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
0 / 100
2145 ms 24168 KB
#include <bits/stdc++.h>
using namespace std;
int encode (int n, int x, int y) {
    for(int i=0;i<10;i++){
        if(((1<<i)&x)!=((1<<i)&y)){
            if(((1<<i)&x)==1)return i*2+1;
            return i*2+2;
        }
    }
    return -1;
}
#include <bits/stdc++.h>
using namespace std;
int decode (int n, int q, int h) {
	h--;
	int f=(h%2);
	h/=2;
	return (f^(q&(1<<h)));
}
# Verdict Execution time Memory Grader output
1 Incorrect 2145 ms 24168 KB wrong answer
2 Incorrect 1902 ms 24124 KB wrong answer