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<bits/stdc++.h>
#include "decoder.h"
#include "decoderlib.h"
#include "encoder.h"
#include "encoderlib.h"
using namespace std;
void encode(int n,int v[]){
int k=0;
for(int i=0;i<n;i++){
k*=2;
k+=v[i];
}
//cout<<k;
send(k);
}
#include<bits/stdc++.h>
#include "decoder.h"
#include "decoderlib.h"
#include "encoder.h"
#include "encoderlib.h"
using namespace std;
void decode(int n,int l,int v[]){
for(int i=n-1;i>=0;i--){
//cout<<(1<<i);
if(v[0]&(1<<i))
//cout<<1<<" ";
output(1);
else
//cout<<0<<" ";
output(0);
}
}
# | 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... |