This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#define ll long long
#include "encoder.h"
#include "encoderlib.h"
void encode(int N, int M[])
{
ll tt,i,j;
tt=0;
for(i=0; i<N; i++)
{
for(j=0;j<8;j++)
{
if((M[i]&(1<<j)))
send(tt);
tt++;
}
}
}
#include<bits/stdc++.h>
#define ll long long
using namespace std;
ll a[101010];
#include "decoder.h"
#include "decoderlib.h"
void decode(int N, int L, int X[])
{
ll i;
// cout<<"\n";
for(i=0;i<N;i++)
a[i]=0;
for(i=0; i<L; i++)
{
// cout<<X[i]<<"\n";
// cout<<a[X[i]/8]<<"a\n";
a[X[i]/8]+=(1<<(X[i]%8));
}
for(i=0;i<N;i++)
{
// cout<<a[i]<<" ";
output(a[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... |