| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 447688 | dxz05 | Parrots (IOI11_parrots) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void encode(int N, int M[]){
assert(N == 8 && M[0] == 1 && M[1] == 0 && M[2] == 1 && M[3] == 0 && M[4] == 0 && M[5] == 1 && M[6] == 1 && M[7] == 0);
for (int i = 0; i < N; i++){
for (int j = 0; j < 8; j++){ /// ABBBBCCC
int code = (M[i] & (1 << j)) > 0;
code <<= 4;
code |= i;
code <<= 3;
code |= j;
send(code);
}
}
}
