# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
4325 |
2013-09-14T13:03:29 Z |
kipa00 |
Parrots (IOI11_parrots) |
C++ |
|
5 ms |
1992 KB |
#include "encoder.h"
#include "encoderlib.h"
void encode(int N, int M[]) {
int i, j;
for (i=0; i<N; ++i) {
for (j=0; j<8; ++j) {
if (M[i] & (1 << j)) {
send((i << 5) | j);
}
}
}
}
#include "decoder.h"
#include "decoderlib.h"
void decode(int N, int L, int X[]) {
int res[32], i;
for (i=0; i<N; ++i) {
res[i] = 0;
}
for (i=0; i<L; ++i) {
res[X[i] >> 3] |= 1 << (X[i] & 0x7);
}
for (i=0; i<N; ++i) {
output(res[i]);
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
760 KB |
Error : Output is wrong |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1592 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1816 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
1992 KB |
Error : Output is wrong |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |
2 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |
3 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |
4 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |
5 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |
6 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |
7 |
Incorrect |
4 ms |
1992 KB |
Error : Bad encoded integer |