# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1224135 | jalapen0p1ckle | Parrots (IOI11_parrots) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
void encode(int N, int M[])
{
int i, t = 0;
for(i=0; i<N; i++) if (M[i]) t ^= (1<<i);
send(t);
}
#include <bits/stdc++.h>
void decode(int N, int L, int X[])
{
int i, b = X[0];
for(i=0; i<8; i++) {
output(b&(1<<i));
}
}