# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1260782 | niepamietamhasla | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++20 | 482 ms | 40684 KiB |
int encode(int n, int x, int y){
for(int i = 10; i >= 0; --i){
int x1 = (x & (1ll << i));
int x2 = (y & (1ll << i));
if(x1 != x2){
return i+1;
}
}
}
int decode(int n, int q, int h){
h--;
int x1 = (q & (1 << h));
if(x1 != 0){
return 1;
}
else{
return 0;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |