# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
136891 | zoooma13 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 1605 ms | 127016 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"
using namespace std;
int encode(int n, int x, int y){
int diff = (x^y);
int lst_bit = log2((diff)&(-diff));
return (bool(x&(1<<lst_bit))*10 + lst_bit+1);
}
#include "bits/stdc++.h"
using namespace std;
int decode(int n, int q, int h){
int lst_bit = (h-1)%10;
bool b = q&(1<<lst_bit);
return (b && h>10) || (!b && h<=10);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |