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 "encoder.h"
#include "encoderlib.h"
void encode(int n, int v[]) {
for(int i=0; i<n; i++) {
int temp = i + (v[i]<<3);
send(temp);
}
}
#include <bits/stdc++.h>
#include "decoder.h"
#include "decoderlib.h"
using namespace std;
void decode(int n, int cnt, int v[]) {
vector<int> ans(n);
for(int i=0; i<cnt; i++) {
int pos = (v[i] & ((1<<3)-1));
int nr = (v[i]>>3);
ans[pos] = nr;
}
for(int i=0; i<n; i++) output(ans[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... |