# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
746583 | 2023-05-22T21:13:09 Z | finn__ | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 0 ms | 0 KB |
struct precalc { int p[924]; constexpr precalc() { int l = 0; for (int i = 0; i < 1 << 12; ++i) if (__builtin_popcount(i) == 6) p[l++] = i; } }; precalc z; int encode(int n, int x, int y) { return __builtin_ctz(z.p[x] ^ z.p[y]) + 1; }