제출 #117284

#제출 시각아이디문제언어결과실행 시간메모리
117284nvmdava앵무새 (IOI11_parrots)C++17
0 / 100
9 ms1608 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]){ int i; for(i=0; i<N; i++){ send(M[i]); send(M[i] ^ i); } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; int a[65]; void decode(int N, int L, int X[]) { multiset<int> in; int i; for(i=0; i<L; i++){ in.insert(X[i]); //output(b); } while(!in.empty()){ for(int x : in){ bool ok = 0; for(int i = 0; i < N; i++){ if(!in.count(x ^ i)) continue; ok = 1; a[i] = x; in.erase(in.find(x)); in.erase(in.find(x ^ i)); } if(ok) break; } } for(int i = 0; i < N; i++){ output(a[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...