제출 #796004

#제출 시각아이디문제언어결과실행 시간메모리
796004hgmhcParrots (IOI11_parrots)C++17
52 / 100
4 ms1312 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 < 4; ++j) { send(i | (j << 4) | ((a[i]>>(2*j)&0b11) << 6)); } } }
#include "decoder.h" #include "decoderlib.h" void decode(int n, int l, int x[]) { int ans[20]{}; for (int k = 0; k < l; ++k) { int i = x[k]&0b1111; int j = x[k]>>4&0b11; int v = x[k]>>6&0b11; ans[i] |= v<<(2*j); } for (int i = 0; i < n; ++i) output(ans[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...