이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |