Submission #995296

#TimeUsernameProblemLanguageResultExecution timeMemory
995296Saul0906Parrots (IOI11_parrots)C++14
34 / 100
1 ms1316 KiB
#include "encoder.h" #include "encoderlib.h" #define rep(a,b,c) for(int a=b; a<c; a++) void encode(int N, int M[]){ rep(i,0,N) send(i^(M[i]<<5)); }
#include "decoder.h" #include "decoderlib.h" #include <iostream> #define rep(a,b,c) for(int a=b; a<c; a++) using namespace std; void decode(int N, int L, int X[]){ int a[N], x; rep(i,0,L){ x=X[i]>>5; X[i]^=x<<5; a[X[i]]=x; } rep(i,0,N) output(a[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...