# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
164893 | 2019-11-24T02:58:26 Z | arnold518 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++14 | 1816 ms | 112576 KB |
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int, int> pii; typedef pair<ll, ll> pll; static vector<int> V; int encode(int N, int X, int Y) { int i, j; if(V.empty()) { V.push_back(-1); for(i=0; i<(1<<12); i++) if(__builtin_popcount(i)==6) V.push_back(i); } X=V[X]; Y=V[Y]; for(i=0; i<12; i++) if(X&(1<<i) && !(Y&(1<<i))) return i+1; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1816 ms | 112576 KB | Output is correct - maxh = 12 |
2 | Correct | 1589 ms | 101592 KB | Output is correct - maxh = 12 |