#include "encoder.h"
#include "encoderlib.h"
#define rep(a,b,c) for(int a=b; a<c; a++)
void encode(int N, int M[]){
rep(i,0,N) send(i^(M[i]<<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]]=x;
}
rep(i,0,N) output(a[i]);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
796 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1036 KB |
Output is correct |
2 |
Correct |
1 ms |
1312 KB |
Output is correct |
3 |
Correct |
1 ms |
1316 KB |
Output is correct |
4 |
Correct |
0 ms |
1308 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
796 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
788 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
796 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |