# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1219865 | SpyrosAliv | Parrots (IOI11_parrots) | C++20 | 0 ms | 0 KiB |
#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void encode(int n, vector<int> m) {
int fin = 0;
for (int i = 0; i < n; i++) {
fin |= (1 << m[i]);
}
send(fin);
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void decode(int n, int l, vector<int> x) {
vector<int> fin;
for (int i = 0; i < n; i++) {
if ((x[0] >> i) & 1) fin.push_back(1);
else fin.push_back(0);
}
output(fin);
}