Submission #601155

#TimeUsernameProblemLanguageResultExecution timeMemory
601155ThegeekKnight16Parrots (IOI11_parrots)C++14
0 / 100
2 ms1000 KiB
#include <bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void encode(int N, int M[]) { int R = 0; for (int i = 0; i < N; i++) { R += (M[i] << i); } send(R); }
#include <bits/stdc++.h> #include "decoder.h" #include "decoderlib.h" using namespace std; void decode(int N, int L, int X[]) { int M[N+10]; for (int i = 0; i < N; i++) { M[i] = ((X[i] && (1 << i)) > 0); } for (int i = 0; i < N; i++) output(M[i]); }

Compilation message (stderr)

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:11:29: warning: '<<' in boolean context, did you mean '<'? [-Wint-in-bool-context]
   11 |         M[i] = ((X[i] && (1 << i)) > 0);
      |                          ~~~^~~~~
#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...