Submission #584505

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