# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
660817 | 600Mihnea | cmp (balkan11_cmp) | C++17 | 1162 ms | 82424 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 & (1 << i))
{
bit_set(i + 1);
}
}
}
int compare(int b)
{
for (int i = 11; i >= 0; i--)
{
int is = !!(b & (1 << i));
int is_n = bit_get(i + 1);
if (is != is_n)
{
if (is > is_n)
{
return +1;
}
else
{
return -1;
}
}
}
return 0;
return bit_get(13);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |