Submission #870757

#TimeUsernameProblemLanguageResultExecution timeMemory
87075712345678Parrots (IOI11_parrots)C++17
17 / 100
1 ms2188 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int N, int M[]) { int x=0; for(int i=0; i<N; i++) x+=(M[i]<<i); send(x); }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { for (int i=0; i<N; i++) output((((1<<i)&X[0])==0)?0:1); }
#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...