제출 #601168

#제출 시각아이디문제언어결과실행 시간메모리
601168vh50앵무새 (IOI11_parrots)C++17
17 / 100
1 ms1032 KiB
#include <bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void encode(int N, int M[]) { int num = 0; for(int i = 0; i < N; i++) { if(M[i]) num += (1 << i); } send(num); }
#include <bits/stdc++.h> #include "decoder.h" #include "decoderlib.h" using namespace std; void decode(int N, int L, int X[]) { int b = X[0]; for(int i = 0; i < N; i++) { if(b & (1 << i)) output(1); else output(0); } }
#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...