제출 #734470

#제출 시각아이디문제언어결과실행 시간메모리
734470Alexabcde1앵무새 (IOI11_parrots)C++14
34 / 100
1 ms1036 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i; for(i=0; i<N; i++) send((i<<8)+M[i]); }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int i, b,ans[20]; for(i=0; i<L; i++) { ans[(X[i]>>8)] = X[i]%256; } for (i=0;i<L;i++) output(ans[i]); }

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

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