Submission #717812

#TimeUsernameProblemLanguageResultExecution timeMemory
717812ZeroCoolParrots (IOI11_parrots)C++14
81 / 100
4 ms1060 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int n, int A[]) { for(int i = 0;i<n;i++){ for(int j = 0;j<8;j++){ if((1<<j) & A[i])send((i << 3) + j); } } }
#include "decoder.h" #include <bits/stdc++.h> using namespace std; #include "decoderlib.h" void decode(int n, int l, int A[]) { int res[n] = {0}; for(int i = 0;i<l;i++){ int ind = A[i] / 8; int bit = A[i] % 8; res[ind] |= (1<<bit); } for(int i = 0;i<n;i++)output(res[i]); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...