| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1295359 | lambd47 | 질문 (CEOI14_question_grader) | C++20 | 701 ms | 39744 KiB |
#include<bits/stdc++.h>
using namespace std;
int xx=0;
vector<int> mapa;
int encode (int n, int x, int y) {
if(xx==0){
for(int i=0;i<(1<<12);i++){
if(__builtin_popcount(i)==6){
mapa.push_back(i);
}
}
}
xx++;
for(int i=0;i<12;i++){
if(((1<<i)&mapa[x])>0 && (((1<<i)&(mapa[y]))==0)){
return i+1;
}
}
}
#include<bits/stdc++.h>
using namespace std;
vector<int> mapa;
int xx=0;
int decode (int n, int x, int h) {
if(xx==0){
for(int i=0;i<(1<<12);i++){
if(__builtin_popcount(i)==6){
mapa.push_back(i);
}
}
}
xx++;
h--;
if(mapa[x]&(1<<h)){
return 1;
}
else return 0;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
