# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
43892 | dhkim0225 | cmp (balkan11_cmp) | C++14 | 2 ms | 248 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 "cmp.h"
void remember(int n) {
bit_set(n);
}
int compare(int b) {
for (int i = 1; i < 4095; i++) {
if (bit_get(i) == 1) {
if (b < i) {
return -1;
}
else if (b == i) {
return 0;
}
else {
return 1;
}
}
}
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |