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"
typedef int ll;
void encode(int N, int M[]) {
ll a = 0;
ll i;
for (i = 0; i < N; i++) {
a *= 2;
a += M[i];
}
send(a);
}
#include "decoder.h"
#include "decoderlib.h"
typedef int ll;
void decode(int N, int L, int X[]) {
ll i;
for (i = 0; i < N; i++) {
output(ll(bool(X[0] & (1 << (N - i - 1)))));
}
}
# | 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... |