| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 17406 | eaststar | 질문 (CEOI14_question_grader) | C++14 | 1568 ms | 25684 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
int A[930];
bool initchk=true;
void init(){
int i,j=1;
initchk=false;
for(i=63;i<4096;++i){
int cnt=__builtin_popcount(i);
if(cnt==6)A[j++]=i;
}
}
int encode(int N,int x,int y){
if(initchk)init();
x=A[x],y=A[y];
return __builtin_ffs(x&(x^y));
}
int A[930];
bool initchk=true;
void init(){
int i,j=1;
initchk=false;
for(i=63;i<4096;++i){
int cnt=__builtin_popcount(i);
if(cnt==6)A[j++]=i;
}
}
int decode(int N,int q,int h){
if(initchk)init();
q=A[q];
return (q&(1<<(h-1)))>0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
