# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
415255 | fvogel499 | Parrots (IOI11_parrots) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "student.h"
int encode(int N, int* M) {
int c = 0;
for (int i = 0; i < N; i++) if (M[i] == 1) c += 1<<i;
send(c);
}
int decode(int N, int L, int* X) {
output(X[0]);
}