Submission #27023

#TimeUsernameProblemLanguageResultExecution timeMemory
27023repeatingParrots (IOI11_parrots)C++11
81 / 100
7 ms2312 KiB
#include <bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" #define F first #define S second #define P push #define pb push_back #define MEM(dp,i) memset(dp,i,sizeof(dp)) #define W while #define R return #define C continue #define SI size() #define ll long long #define ld long double #define pll pair<ll,ll> #define pii pair<int,int> #define SF(x) scanf("%I64d",&x) #define SF2(x,y) scanf("%I64d%I64d",&x,&y) #define SF3(x,y,z) scanf("%I64d%I64d%I64d",&x,&y,&z) #define SF4(x,y,z,o) scanf("%I64d%I64d%I64d%I64d",&x,&y,&z,&o) #define all(v) v.begin(),v.end() using namespace std; const long long INF = 1e9+5e8; const int MX=1500005; void encode(int N, int M[]) { for(int i=0;i<N;i++){ for(int j=0;j<8;j++){ if(M[i]&(1<<j)){ send((8*i)+j); } } } }
#include <bits/stdc++.h> #include "decoder.h" #include "decoderlib.h" #define F first #define S second #define P push #define pb push_back #define MEM(dp,i) memset(dp,i,sizeof(dp)) #define W while #define R return #define C continue #define SI size() #define ll long long #define ld long double #define pll pair<ll,ll> #define pii pair<int,int> #define SF(x) scanf("%I64d",&x) #define SF2(x,y) scanf("%I64d%I64d",&x,&y) #define SF3(x,y,z) scanf("%I64d%I64d%I64d",&x,&y,&z) #define SF4(x,y,z,o) scanf("%I64d%I64d%I64d%I64d",&x,&y,&z,&o) #define all(v) v.begin(),v.end() using namespace std; const long long INF = 1e9+5e8; const int MX=1500005; int res[33]; void decode(int N, int L, int X[]) { MEM(res,0); for(int i=0;i<L;i++){ res[X[i]/8]+=(1<<(X[i]%8)); } for(int i=0;i<N;i++) output(res[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...