Submission #920525

#TimeUsernameProblemLanguageResultExecution timeMemory
920525PanndaParrots (IOI11_parrots)C++14
17 / 100
1 ms1308 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int _a[]) { vector<int> a(_a, _a + n); int x = 0; for (int i = 0; i < n; i++) { x += a[i] << i; } send(x); }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int n, int k, int _b[]) { vector<int> b(_b, _b + k); int x = b[0]; for (int i = 0; i < n; i++) { output(x >> i & 1); } }
#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...