# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
36416 | bnahmad15 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 1229 ms | 27472 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
int encode(int n,int x,int y){
int bit = 0;
for (int i= 0;i<10;i++){
if ((x&(1<<i)) != (y&(1<<i))){
bit = i;
if ((x & (1<<i)) == 1)
bit+=10;
break;
}
}
return bit+1;
}
#include <bits/stdc++.h>
int decode(int n,int q,int h){
h--;
if (h >= 10)
return ((q & (1 << (h-10)))== 1) ? 1 : 0;
else
return ((q& (1 << h)) == 0) ? 1 : 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |