제출 #809402

#제출 시각아이디문제언어결과실행 시간메모리
809402hgmhc앵무새 (IOI11_parrots)C++17
52 / 100
3 ms1052 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int a[]) { for (int i = 0; i < n; ++i) { // n:5bit, m:8bit, s:8bit // j:3bit * 10 for (int j = 0; j < 8; ++j) { if (a[i]>>j&1) send((i<<3)|j); } } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; const int N = 20; void decode(int n, int l, int x[]) { int ans[N]{}; for (int k = 0; k < l; ++k) { int i = x[k]>>3; int j = x[k]&0b111; ans[i] |= 1<<j; } for (int i = 0; i < n; ++i) output(ans[i]); } // g++-13 grader.cpp encoder.cpp decoder.cpp -o par && ./par < grader.in.1
#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...