# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
564706 | MrDeboo | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 2145 ms | 24168 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) {
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;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |