# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1235224 | luvlorndev | 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, int n[]) {
for(int i = 0; i < n; i++) {
send((i*256) + m[i]);
}
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void decode(int n, int l, int x[])
{
vector<int> msg(n);
for (int i = 0; i < l; i++) {
int b = x[i] ;
msg[b/256] = b%256;
}
for (int i = 0; i < msg.size(); i++) {
output(msg[i]);
}
}