제출 #360309

#제출 시각아이디문제언어결과실행 시간메모리
360309sean617앵무새 (IOI11_parrots)C++98
0 / 100
1 ms1352 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i, re = 0; for(i=0; i<N; i++) { re = re * 2 + M[i]; } send(re); }
#include "decoder.h" #include "decoderlib.h" int ans[1000]; void decode(int N, int L, int X[]) { int i = 0, a, b; a = X[0]; while (a > 0) { ans[i++] = a % 2; a/=2; } for (i = N - 1; i >= 0; i--) output(ans[i]); }

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

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:7:19: warning: unused variable 'b' [-Wunused-variable]
    7 |     int i = 0, a, 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...