제출 #51822

#제출 시각아이디문제언어결과실행 시간메모리
51822rondojim앵무새 (IOI11_parrots)C++17
52 / 100
7 ms2240 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]){ for(int i=0; i<N; ++i) for(int j=0; j<8; ++j) if(M[i] & (1 << (8 - j - 1))) send(16 * i + 2 * j); }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]){ sort(X, X + L); int res[N] = {0}, sum = 0; for(int i=0; i<L; ++i) res[X[i] / 16] += (1 << (7 - (X[i] % 16) / 2)); for(int i=0; i<N; ++i) output(res[i]); }

컴파일 시 표준 에러 (stderr) 메시지

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:8:20: warning: unused variable 'sum' [-Wunused-variable]
  int res[N] = {0}, sum = 0;
                    ^~~
#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...