제출 #1016541

#제출 시각아이디문제언어결과실행 시간메모리
1016541nisanduu앵무새 (IOI11_parrots)C++14
34 / 100
1 ms1320 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int N, int M[]) { for(int i=0;i<N;i++){ int num = (i+1)*256; send(num + M[i]); } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { vector<int> v(N+5); for(int i=0;i<L;i++){ int cnt = (X[i]/256) - 1; int num = X[i]%256; v[cnt]=num; } for(int i=0;i<N;i++) output(v[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...