Submission #595818

#TimeUsernameProblemLanguageResultExecution timeMemory
595818snasibov05Parrots (IOI11_parrots)C++14
17 / 100
2 ms984 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int n, int m[]){ int k = 1; for (int i = 0; i < n; ++i){ send(k * m[i]); k *= 2; } }
#include "decoder.h" #include "decoderlib.h" #include "bits/stdc++.h" using namespace std; void decode(int n, int l, int x[]){ vector<bool> v(n); for (int i = 0; i < l; ++i){ if (x[i] == 0) continue; int k = 0; while (x[i] > 1) x[i] /= 2, k++; v[k] = true; } for (int i = 0; i < n; ++i) output(v[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...