# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
666055 | MilosMilutinovic | cmp (balkan11_cmp) | C++14 | 0 ms | 208 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"
#include <bits/stdc++.h>
using namespace std;
void remember(int n) {
for (int i = 0; i < 12; i++) {
if (n >> i & 1) {
bit_set(i);
}
}
}
int compare(int b) {
for (int i = 11; i >= 0; i--) {
int is = bit_get(i);
if ((b >> i & 1) == is) {
continue;
}
if ((b >> i & 1) < is) {
return -1;
} else {
return 1;
}
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |