제출 #65881

#제출 시각아이디문제언어결과실행 시간메모리
65881jaehun630앵무새 (IOI11_parrots)C++14
0 / 100
5 ms2096 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i; //subtask3 for (i = 0; i < N; i++) for(int j=0; j<1; j++) j == 0 ? send((i << 5) + (M[i] >> 4)) : send((j << 4) + M[i]); }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int i, b; int ans[100] = { 0 }; for(i=0; i<L; i++) ans[X[i] / (1 << 5)] += (X[i] >> 4) == 0 ? (X[i] << 4) : X[i]; for (int i = 0; i < N; i++) output(ans[i]); }

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

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:6:10: warning: unused variable 'b' [-Wunused-variable]
   int i, b;
          ^
#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...