#include<bits/stdc++.h>
using namespace std;
#include "encoder.h"
#include "encoderlib.h"
void encode(int N, int M[])
{
for(int i = 0; i < N; i++){
int x = M[i];
for(int h = 0; (1<<h)<=x; h++){
if((x>>h)&1){
send((h<<5)+i);
}
}
}
return;
}
#include<bits/stdc++.h>
using namespace std;
#include "decoder.h"
#include "decoderlib.h"
int num[10][200];
void decode(int N, int L, int X[])
{
for(int i=0; i<L; i++) {
int x = X[i];
num[(x>>5)][((x|224)^224)]++;
}
for(int i = 0; i < N; i++){
int x = 0;
for(int h = 0; h < 8; h++){
if(num[h][i]&1){
x+=(1<<h);
}
}
output(x);
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
588 KB |
Error : Output is wrong |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
956 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
952 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
1008 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
984 KB |
Error : Output is wrong |
2 |
Incorrect |
3 ms |
1048 KB |
Error : Output is wrong |
3 |
Incorrect |
0 ms |
624 KB |
Error : Bad encoded integer |
4 |
Incorrect |
0 ms |
636 KB |
Error : Bad encoded integer |
5 |
Incorrect |
0 ms |
604 KB |
Error : Bad encoded integer |
6 |
Incorrect |
0 ms |
628 KB |
Error : Bad encoded integer |
7 |
Incorrect |
0 ms |
600 KB |
Error : Bad encoded integer |