# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
668507 | RambaXGorilla | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 7075 ms | 5852 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.
using namespace std;
int conv(int a){
for(int i = 0, j = 0;i < 1 << 12;i++){
if(__builtin_popcount(i) == 6){
j++;
if(j == a) return i;
}
}
}
int encode(int N, int X, int Y){
X = conv(X);
Y = conv(Y);
return __builtin_ctz(X ^ (X & Y)) + 1;
}
int decode(int N, int Q, int H){
return (bool) (conv(Q) & 1 << H - 1);
}
using namespace std;
int conv(int a){
for(int i = 0, j = 0;i < 1 << 12;i++){
if(__builtin_popcount(i) == 6){
j++;
if(j == a) return i;
}
}
}
int encode(int N, int X, int Y){
X = conv(X);
Y = conv(Y);
return __builtin_ctz(X ^ (X & Y)) + 1;
}
int decode(int N, int Q, int H){
return (bool) (conv(Q) & 1 << H - 1);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |