# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
351955 | beksultan04 | Parrots (IOI11_parrots) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "encoder.h"
#include "encoderlib.h"
void encode(int N, int M[])
{
int i,c=0;
for(i=0; i<N; i++){
send(M[i]+c*255);
}
}
#include "decoder.h"
#include "decoderlib.h"
void decode(int N, int L, int X[])
{
int i, b;
sort(X,X+N);
for(i=0; i<N; i++) {
b = X[i]-(255*i);
output(b);
}
}