# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
43873 | kdk8361 | cmp (balkan11_cmp) | C++17 | 4081 ms | 82480 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) {
//edit this
for (int i = 1; i <= 12; ++i)
if (n&(1 << (12 - i)))
bit_set(i);
}
int compare(int b) {
//edit this
int a = 0;
for (int i = 1; i <= 12; ++i) {
if (bit_get(i))
a += (1 << (12 - i));
}
if (b < a) return -1;
else if (b == a) return 0;
else return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |