Submission #471442

#TimeUsernameProblemLanguageResultExecution timeMemory
471442flappybirdParrots (IOI11_parrots)C++14
17 / 100
2 ms872 KiB
#include "encoder.h" #include "encoderlib.h" typedef int ll; void encode(int N, int M[]) { ll a = 0; ll i; for (i = 0; i < N; i++) { a *= 2; a += M[i]; } send(a); }
#include "decoder.h" #include "decoderlib.h" typedef int ll; void decode(int N, int L, int X[]) { ll i; for (i = 0; i < N; i++) { output(ll(bool(X[0] & (1 << (N - i - 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...