# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
97030 | 2019-02-13T12:23:53 Z | Kastanda | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++11 | 1128 ms | 78880 KB |
// And I was like ooo-eee-ooo #include<bits/stdc++.h> using namespace std; const int MXN = 4095; vector < int > A; inline int Init() { for (int i = 0; i <= MXN; i++) if (__builtin_popcount(i) == 6) A.push_back(i); } int encode(int N, int X, int Y) { if (!A.size()) Init(); return (__builtin_ctz(A[X] & (MXN ^ A[Y])) + 1); }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1128 ms | 78680 KB | wrong answer |
2 | Incorrect | 1128 ms | 78880 KB | wrong answer |