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>
#define FOR(var,bound) for(int var = 0; var < bound; var++)
#define FORB(var,lb,ub) for (int var = lb; var < ub; var++)
#define FORR(var,bound) for(int var = bound-1; var >= 0; var--)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pii;
void send(int x);
void output(int x);
void encode(int n, int m[]) {
FOR (i, n) {
send(i * 4 * 4 + (m[i] & 0x3));
send((i*4+1) * 4 + ((m[i] >> 2) & 0x3));
send((i*4+2) * 4 + ((m[i] >> 4) & 0x3));
send((i*4+3) * 4 + ((m[i] >> 6) & 0x3));
}
}
#include <bits/stdc++.h>
#define FOR(var,bound) for(int var = 0; var < bound; var++)
#define FORB(var,lb,ub) for (int var = lb; var < ub; var++)
#define FORR(var,bound) for(int var = bound-1; var >= 0; var--)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pii;
void send(int x);
void output(int x);
void decode(int N, int L, int X[]) {
sort(X, X + L);
FOR (i, N) {
output((X[i*4]&0x3) + ((X[i*4+1]&0x3)<<2) + ((X[i*4+2]&0x3)<<4) + ((X[i*4+3]&0x3)<<6));
}
}
# | 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... |