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"
#define rep(a,b,c) for(int a=b; a<c; a++)
#include <iostream>
using namespace std;
void encode(int N, int M[]){
rep(i,0,N){
rep(j,0,8){
if(M[i]&(1<<j)) send(i^(j<<5));
}
}
}
#include "decoder.h"
#include "decoderlib.h"
#include <iostream>
#define rep(a,b,c) for(int a=b; a<c; a++)
using namespace std;
void decode(int N, int L, int X[]){
int a[N]{}, x;
rep(i,0,L){
x=X[i]>>5;
X[i]^=x<<5;
a[X[i]]^=(1<<x);
}
rep(i,0,N) 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... |