제출 #227721

#제출 시각아이디문제언어결과실행 시간메모리
227721muhammad_hokimiyon앵무새 (IOI11_parrots)C++14
34 / 100
11 ms1536 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int a[]) { for( int i = 0; i < n; i++ ){ send( a[i] * 256 + i ); } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int n, int l, int a[]) { vector < int > b(n); for( int i = 0; i < l; i++ ){ b[a[i] % 256] = a[i] / 256; } for( int i = 0; i < n; i++ ){ output( b[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...