# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
552817 | 2022-04-24T05:42:18 Z | Aldas25 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 0 ms | 0 KB |
int firstBit (int x) { FOR(i, 0, 15) if (x & (1<<i)) return i; return -1; } int encode (int n, int x, int y) { //int x, y; // cin >> x >> y; int b = firstBit(x ^ y); //f (b == -1) exit(1); int code = b<<1; if (x & (1<<b)) code++; // cout << code << "\n"; return code; }