# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1141616 | SulA | cmp (balkan11_cmp) | C++20 | 0 ms | 320 KiB |
#include <bits/stdc++.h>
#include "cmp.h"
#define all(a) a.begin(), a.end()
using namespace std;
void remember(int a) {
for (int i = 0; i < 12; i++) if ((a >> i) & 1)
bit_set(i);
}
int compare(int b) {
for (int i = 0; i < 12; i++) {
int a_i = bit_get(i);
int b_i = (b >> i) & 1;
if (b_i < a_i) return -1;
if (b_i > a_i) return 1;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |