# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
529705 | pokmui9909 | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 2193 ms | 24036 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;
using ll = long long;
vector<ll> V;
int encode(int n, int x, int y){
if(V.empty()){
for(int i = 0; i < (1 << 12); i++){
if(__builtin_popcount(i) == 6){
V.push_back(i);
}
}
}
for(int i = 0; i < 12; i++){
if((V[x] & (1 << i)) && !(V[y] & (1 << i))){
return i + 1;
}
}
}
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
vector<ll> V;
int decode(int n, int q, int h){
h--;
if(V.empty()){
for(int i = 0; i < (1 << 12); i++){
if(__builtin_popcount(i) == 6){
V.push_back(i);
}
}
}
return (V[q] & (1 << h));
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |