# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1141738 | ibsha | cmp (balkan11_cmp) | C++20 | 425 ms | 82540 KiB |
#include "cmp.h"
void remember(int a) {
for (int i=0; i<=10; i++){
if (a & (1<<i)) bit_set(i+1);
}
}
int compare(int b) {
int a=0;
for (int i=0; i<=10; i++){
if (bit_get(i+1)) a |= (1<<i);
}
if (b < a) return -1;
else if (b == a) return 0;
return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |