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"
#include <iostream>
using namespace std;
int pozicija[8],nova_niza[8];
void encode(int n,int arr[])
{
for (int i=0,j=0;i<n;i++,j+=2)
arr[i]+=j;
for (int i=0;i<n;i++)
send(arr[i]);
}
#include "decoder.h"
#include "decoderlib.h"
#include <iostream>
using namespace std;
int pozicija[8],nova_niza[8];
void decode(int n,int l,int arr[])
{
for (int i=0;i<l;i++)
{
pozicija[i]=arr[i]/2;
arr[i]%=2;
}
for (int i=0;i<n;i++)
nova_niza[pozicija[i]]=arr[i];
for (int i=0;i<n;i++)
output(nova_niza[i]);
}
# | 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... |