#include "encoder.h"
#include "encoderlib.h"
void encode(int N, int M[])
{
int s=0;
int a,b,c;
for(int i=0;i<N;i++)
{
a=M[i]%10;
M[i]/=10;
b=M[i]%10;
M[i]/=10;
c=M[i]%10;
M[i]/=10;
send(s+c);
send(s+b);
send(s+a);
s+=10;
}
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void decode(int N, int L, int X[])
{
sort(X,X+L);
int x=0;
for(int i=0;i<L;i+=3)
{
for(int j=i;j<i+3;j++)
{
x+=X[i]%10;
x*=10;
}
output(x);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
1076 KB |
Error : Output is wrong |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
1920 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
2152 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
2320 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
2616 KB |
Error : Output is wrong |
2 |
Incorrect |
5 ms |
2616 KB |
Error : Bad encoded integer |
3 |
Incorrect |
5 ms |
2616 KB |
Error : Bad encoded integer |
4 |
Incorrect |
4 ms |
2616 KB |
Error : Bad encoded integer |
5 |
Incorrect |
4 ms |
2616 KB |
Error : Bad encoded integer |
6 |
Incorrect |
6 ms |
2616 KB |
Error : Bad encoded integer |
7 |
Incorrect |
4 ms |
2616 KB |
Error : Bad encoded integer |