Submission #360869

#TimeUsernameProblemLanguageResultExecution timeMemory
360869sean617Parrots (IOI11_parrots)C++98
34 / 100
2 ms1396 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i, re = 0; for(i=0; i<N; i++) { send(i * 1000 + M[i]); } }
#include "decoder.h" #include "decoderlib.h" #include<cstring> int ans[1000]; void decode(int N, int L, int X[]) { int i = 0, a, b; for (i = 0; i < L; i++) { ans[X[i] / 1000] = X[i] % 1000; } for (i = 0; i < L; i++) { output(ans[i]); } }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:6:12: warning: unused variable 're' [-Wunused-variable]
    6 |     int i, re = 0;
      |            ^~

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