# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1245069 | repmann | 질문 (CEOI14_question_grader) | C++20 | 0 ms | 320 KiB |
#include <bits/stdc++.h>
using namespace std;
static int B[925];
inline void Pre()
{
for(int i = 1, j = 0; i < 4096; i++)
{
if(__builtin_popcount(i) != 6) continue;
B[++j] = i;
}
return;
}
int encode(int n, int x, int y)
{
for(int i = 0; i < 12; i++) if((B[x] & (1 << i)) && !(B[y] & (1 << i))) return i + 1;
}
#include <bits/stdc++.h>
using namespace std;
static int B[925];
inline void Pre()
{
for(int i = 1, j = 0; i < 4096; i++)
{
if(__builtin_popcount(i) != 6) continue;
B[++j] = i;
}
return;
}
int decode(int n, int x, int y)
{
return B[x] & (1 << (y - 1));
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |