제출 #481307

#제출 시각아이디문제언어결과실행 시간메모리
481307unknownnnn앵무새 (IOI11_parrots)C++14
17 / 100
2 ms1012 KiB
#include "encoder.h" #include "encoderlib.h" #include <iostream> void encode(int n,int m[]) { int j=0; for(int i=0 ; i<n ; i++) { m[i]=(m[i]+j); j+=2; } for(int i=0 ; i<n ; i++) { send(m[i]); } }
#include "decoder.h" #include "decoderlib.h" #include <iostream> void decode(int n, int l, int m[]) { int niza[n]; for(int i=0 ; i<n ; i++) { int pozicija=m[i]/2; niza[pozicija]=m[i]%2; } for(int i=0 ; i<n ; i++) { output(niza[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...