Submission #65833

#TimeUsernameProblemLanguageResultExecution timeMemory
65833josw530Parrots (IOI11_parrots)C++98
34 / 100
5 ms2032 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; int msg[16]; for(i=0; i<L; i++) { msg[(X[i]>>8)&0xFF] = X[i] &0xFF; } for(i=0; i<L; i++) { output(msg[i]); } }

Compilation message (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...