Submission #601168

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