# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
43872 | kdk8361 | cmp (balkan11_cmp) | C++17 | 959 ms | 82472 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cmp.h"
void remember(int n) {
//edit this
for (int i = 1; i <= 12; ++i)
if (n&(1 << (13 - i)))
bit_set(i);
}
int compare(int b) {
//edit this
int a = 0;
for (int i = 1; i <= 12; ++i) {
if (bit_get(i))
a += (1 << (13 - i));
}
if (b < a) return -1;
else if (b == a) return 0;
else return 1;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |