# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
836869 | Andrey | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 2378 ms | 24108 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((x&(1 << i)) != (y&(1 << i))) {
int ans = i+1;
if(x&(1 << i)) {
ans+=10;
}
return ans;
}
}
}
#include<bits/stdc++.h>
using namespace std;
int decode (int n, int q, int h) {
h--;
int a = (q&(1 << (h%10)))/(1 << (h%10));
int b = h/10;
if((a^b) == 0) {
return 1;
}
else {
return 0;
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |