| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1322346 | edo | 비교 (balkan11_cmp) | C++20 | 526 ms | 99772 KiB |
#include "cmp.h"
#include <bits/stdc++.h>
void remember(int n) {
n += 4096;
while(n) {
bit_set(n);
n >>= 3;
}
}
int compare(int b) {
b += 4096;
for(int lvl = 4; ~lvl; --lvl) {
int node = b >> (lvl * 3);
if(!bit_get(node)) {
int d = node % 8;
if(d <= 2) return -1;
if(d >= 5) return 1;
if(d == 3)
return bit_get(node) ? 1 : -1;
else
return bit_get(node + 7) ? -1 : 1;
}
}
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
