# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
132821 | Osama_Alkhodairy | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 1596 ms | 83912 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 h = 0;
while(((x >> h) & 1) == ((y >> h) & 1)) h++;
assert(h < 10);
if((x >> h) & 1) h += 10;
h++;
return h;
}
#include <bits/stdc++.h>
using namespace std;
int decode (int n, int q, int h) {
h--;
int xbit = h >= 10;
if(h >= 10) h -= 10;
if(((q >> h) & 1) == xbit) return 1;
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |