| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 79204 | doowey | 앵무새 (IOI11_parrots) | C++14 | 6 ms | 1608 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "encoder.h"
#include "encoderlib.h"
using namespace std;
void encode(int n, int arr[])
{
vector<int> bits;
for(int i = 0; i < n; i ++ ){
for(int j = 0; j < 8 ; j ++ ){
if((arr[i] & (1 << j))){
bits.push_back(1);
}
else{
bits.push_back(0);
}
}
}
for(int i = 0; i < bits.size(); i ++ ){
send(i * 2 + bits[i]);
}
}
#include <bits/stdc++.h>
#include "decoder.h"
#include "decoderlib.h"
using namespace std;
void decode(int n, int k, int x[]){
vector<int> ret_bits;
for(int i = 0; i < k ;i ++ )
ret_bits.push_back(x[i]);
sort(ret_bits.begin(), ret_bits.end());
int L, R;
int sum;
for(int i = 0; i < n; i ++ ){
L = i * 8;
R = L + 8;
vector<int> p;
for(int j = L; j < R; j ++ ){
p.push_back(ret_bits[j] % 2);
}
sum = 0;
for(int bit = 0; bit < 8; bit ++ )
sum += p[bit] * (1 << bit);
output(sum);
}
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
