제출 #65968

#제출 시각아이디문제언어결과실행 시간메모리
65968llllilll앵무새 (IOI11_parrots)C++14
24 / 100
17 ms2432 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++) { //cout << M[i] << " "; int msg = 0; msg += (i << 2); int tmp = M[i]; for (int j = 3; j >= 0; j--) { int cnt = tmp % 4; for (int k = 1; k <= cnt; k++) { send(msg + j); } tmp >>= 2; } } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { int origin[64] = { 0, }; for (int i = 0; i < L; i++) { int idx = X[i] >> 2; int idx_inner = X[i] % 4; origin[idx] += 1 << (3 - idx_inner) * 2; } for(int i=0; i < N; i++) { //cout << origin[i] << " "; output(origin[i]); } //cout << endl; }
#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...