Submission #64629

#TimeUsernameProblemLanguageResultExecution timeMemory
64629gnoorParrots (IOI11_parrots)C++17
0 / 100
7 ms2336 KiB
#include "encoder.h" #include "encoderlib.h" #include <cassert> void encode(int N, int M[]) { assert(N<=32); for (int i=0;i<N;i++) { for (int j=0;j<8;j++) { if (M[i]&(1<<j)) send(i*8+j); } } }
#include "decoder.h" #include "decoderlib.h" int ans[70]; void decode(int N, int L, int X[]) { int i, b; for(i=0; i<L; i++) { b = X[i]; int pos=X[i]/8; int off=X[i]%8; ans[pos]^=(1<<off); } for (int i=0;i<N;i++) { output(ans[i]); } }

Compilation message (stderr)

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:8:10: warning: variable 'b' set but not used [-Wunused-but-set-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...