# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
927656 | MuntherCarrot | cmp (balkan11_cmp) | C++17 | 0 ms | 2392 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "cmp.h"
using namespace std;
// void bit_set(int add)
// int bit_get(int add);
void remember(int a){
for(int i = 0; i < 6; i++){
bit_set(a % 4 + i * 4);
a /= 4;
}
}
int compare(int b){
int dig[6];
for(int i = 0; i < 6; i++){
dig[i] = b % 4;
b /= 4;
}
int i = 5;
for(; i >= 0; i--){
int x = bit_get(dig[i] + i * 4);
if(x == 1) break;
}
if(i == -1){
return 0;
}
else{
for(int j = 0; j < 4; j++){
int x = bit_get(j + i * 4);
if(x){
return dig[i] > x ? 1 : -1;
}
}
}
return 0;
}
// by me
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |