#include "bits/stdc++.h"
#include "cmp.h"
#define sz(x) (int)size(x)
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)
using namespace std;
using ll = long long;
using pii = pair<int, int>;
const char nl = '\n';
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3f;
void remember(int a) {
for (int i = 0; i < 12; i++)
if ((a >> i) & 1)
bit_set(i);
}
int compare(int b) {
int a = 0;
for (int i = 0; i < 12; i++)
if (bit_get(i))
a += (1 << i);
return (b < a ? -1 : b == a ? 0 : 1);
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |