#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void encode(int N, int M[])
{
int x=0;
for(int i=0; i<N; i++) x+=(M[i]<<i);
send(x);
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void decode(int N, int L, int X[])
{
for (int i=0; i<N; i++) output((((1<<i)&X[0])==0)?0:1);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
796 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
1560 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
796 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
800 KB |
Error : Bad encoded integer |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
784 KB |
Error : Bad encoded integer |
2 |
Incorrect |
0 ms |
792 KB |
Error : Bad encoded integer |
3 |
Incorrect |
1 ms |
2188 KB |
Error : Bad encoded integer |
4 |
Incorrect |
1 ms |
796 KB |
Error : Bad encoded integer |
5 |
Incorrect |
0 ms |
792 KB |
Error : Bad encoded integer |
6 |
Incorrect |
0 ms |
796 KB |
Error : Bad encoded integer |
7 |
Incorrect |
0 ms |
796 KB |
Error : Bad encoded integer |