# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
125698 | faustaadp | 비교 (balkan11_cmp) | C++17 | 1763 ms | 82680 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "cmp.h"
#include<bits/stdc++.h>
typedef long long ll;
#define pb push_back
#define mp make_pair
#define fi first
#define se second
using namespace std;
void remember(int n) {
//edit this
ll ii,tom=1;
for(ii=11;ii>=0;ii-=3)
{
ll jj,Z=0;
for(jj=0;jj<3;jj++)
if(n&(1<<(ii-2+jj)))
Z+=(1<<jj);
bit_set(Z+tom);
tom+=8;
}
}
int compare(int b) {
//edit this
ll ii,tom=1;
for(ii=11;ii>=0;ii-=3)
{
ll jj,Z=0;
for(jj=0;jj<3;jj++)
if(b&(1<<(ii-2+jj)))
Z+=(1<<jj);
if(bit_get(Z+tom))
{
}
else
{
if(Z<=3)
{
ll jj;
for(jj=0;jj<Z;jj++)
if(bit_get(jj+tom))return 1;
return -1;
}
else
{
ll jj;
for(jj=Z+1;jj<8;jj++)
if(bit_get(jj+tom))return -1;
return 1;
}
}
tom+=8;
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |