#include "encoder.h"
#include "encoderlib.h"
int asddd;
void swap(int &x, int &y) {
int t = x;
x = y;
y = t;
}
void encode(int N, int M[])
{
int i;
for(i= 0; i + 1 < N; i += 2) {
swap(M[i], M[i + 1]);
}
for(i=0; i<N; i++)
send(M[i]);
}
#include "decoder.h"
#include "decoderlib.h"
int asddd;
void decode(int N, int L, int X[])
{
int i, b;
for(i=0; i<L; i++) {
b = X[i];
output(b);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
752 KB |
Error : Output is wrong |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1736 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1920 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1984 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1984 KB |
Error : Output is wrong |
2 |
Incorrect |
4 ms |
1984 KB |
Error : Output is wrong |
3 |
Incorrect |
5 ms |
2136 KB |
Error : Output is wrong |
4 |
Incorrect |
5 ms |
2200 KB |
Error : Output is wrong |
5 |
Incorrect |
5 ms |
2208 KB |
Error : Output is wrong |
6 |
Incorrect |
5 ms |
2232 KB |
Error : Output is wrong |
7 |
Incorrect |
5 ms |
2232 KB |
Error : Output is wrong |