Submission #657838

#TimeUsernameProblemLanguageResultExecution timeMemory
657838cristi_aParrots (IOI11_parrots)C++17
34 / 100
2 ms1032 KiB
#include <bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void encode(int n, int v[]) { for(int i=0; i<n; i++) { int temp = i + (v[i]<<4); send(temp); } }
#include <bits/stdc++.h> #include "decoder.h" #include "decoderlib.h" using namespace std; void decode(int n, int cnt, int v[]) { vector<int> ans(n); for(int i=0; i<cnt; i++) { int pos = (v[i] & ((1<<4)-1)); int nr = (v[i]>>4); ans[pos] = nr; } for(int i=0; i<n; i++) output(ans[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...