# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
927580 | mohammedMonem | cmp (balkan11_cmp) | C++14 | 611 ms | 67976 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) {
bitset<12> bsn;
for (int i = 0; i < bsn.size(); ++i) {
if (bsn[i]) {
bit_set(i + 1);
}
}
}
int compare(int b) {
bitset<12> bsb;
for (int i = 0; i < bsb.size(); ++i) {
if (bsb[i] > bit_get(i + 1)) {
return 1;
} else if (bsb[i] < bit_get(i + 1)) {
return -1;
}
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |