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;i<n;i++)
arr[i]+=1000*i;
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<n;i++)
{
int poz=arr[i]/1000;
nova_niza[poz]=arr[i]-1000*poz;
}
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... |