Submission #481139

#TimeUsernameProblemLanguageResultExecution timeMemory
481139kkkkkkkkParrots (IOI11_parrots)C++14
17 / 100
2 ms1012 KiB
#include "encoder.h" #include "encoderlib.h" #include <iostream> using namespace std; int pozicija[8],nova_niza[8]; void encode(int n,int arr[]) { for (int i=0,j=0;i<n;i++,j+=2) arr[i]+=j; for (int i=0;i<n;i++) send(arr[i]); }
#include "decoder.h" #include "decoderlib.h" #include <iostream> using namespace std; int pozicija[8],nova_niza[8]; void decode(int n,int l,int arr[]) { for (int i=0;i<l;i++) { pozicija[i]=arr[i]/2; arr[i]%=2; } for (int i=0;i<n;i++) nova_niza[pozicija[i]]=arr[i]; for (int i=0;i<n;i++) output(nova_niza[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...