Submission #38974

#TimeUsernameProblemLanguageResultExecution timeMemory
38974faustaadpParrots (IOI11_parrots)C++14
81 / 100
7 ms2480 KiB
#define ll long long #include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { ll tt,i,j; tt=0; for(i=0; i<N; i++) { for(j=0;j<8;j++) { if((M[i]&(1<<j))) send(tt); tt++; } } }
#include<bits/stdc++.h> #define ll long long using namespace std; ll a[101010]; #include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { ll i; // cout<<"\n"; for(i=0;i<N;i++) a[i]=0; for(i=0; i<L; i++) { // cout<<X[i]<<"\n"; // cout<<a[X[i]/8]<<"a\n"; a[X[i]/8]+=(1<<(X[i]%8)); } for(i=0;i<N;i++) { // cout<<a[i]<<" "; 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...