# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1246965 | MateiKing80 | 비교 (balkan11_cmp) | C++20 | 0 ms | 320 KiB |
#include "cmp.h"
#include <bits/stdc++.h>
void remember(int a) {
for (int i = 0; i < 12; i ++)
if (a & (1 << i))
bit_set(i);
}
int compare(int b) {
for (int i = 11; i >= 0; i --) {
int x = bit_get(i);
int y = (b & (1 << i)) > 0;
if (x == y)
continue;
if (x > y)
return -1;
return 1;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |