제출 #595840

#제출 시각아이디문제언어결과실행 시간메모리
595840snasibov05앵무새 (IOI11_parrots)C++14
81 / 100
5 ms1060 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int n, int m[]){ int mx = 8; for (int i = 0; i < n; ++i){ for (int j = 0; j < mx; ++j){ if (1 << j & m[i]) send(j * n + i); } } }
#include "decoder.h" #include "decoderlib.h" #include "bits/stdc++.h" using namespace std; void decode(int n, int l, int x[]){ vector<int> v(n); for (int i = 0; i < l; ++i){ v[x[i] % n] += (1 << (x[i] / n)); } 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...