제출 #795956

#제출 시각아이디문제언어결과실행 시간메모리
795956hgmhc앵무새 (IOI11_parrots)C++17
34 / 100
1 ms988 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int n, int a[]) { for (int i = 0; i < n; ++i) send(i|(a[i]<<4)); } // a[i] < 2^8
#include "decoder.h" #include "decoderlib.h" static const int N = 20; static int ans[N]; void decode(int n, int l, int x[]) { for (int i = 0; i < l; ++i) { int b = x[i]; ans[b&0b1111] = b>>4; } for (int i = 0; i < n; ++i) output(ans[i]); } // ans[i] < 2^8
#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...