제출 #232937

#제출 시각아이디문제언어결과실행 시간메모리
232937Zex앵무새 (IOI11_parrots)C++11
34 / 100
9 ms1536 KiB
#include "encoder.h" #include "encoderlib.h" int append( int x, int i ){ return 100*x+i; } void encode( int N, int M[] ){ /* IDEA 1 : For every number Mi, add to it two digits that identify the order index */ for(int i=0;i<N;i++) send( append( M[i], i ) ); }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]){ /* IDEA 1 : X has N numbers, each number is xyz, where x is the original number and yz is the index */ int A[L]; for(int i=0;i<L;i++){ int xyz = X[i]; int x = X[i] / 100, yz = X[i]%100; A[yz] = x; } for(int i=0;i<L;i++) output( A[i] ); }

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

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