# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
829692 | haxorman | Data Transfer (IOI19_transfer) | C++14 | 8 ms | 2484 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "transfer.h"
#include <bits/stdc++.h>
using namespace std;
vector<int> get_attachment(vector<int> source) {
vector<int> res;
for (int j = 0; (1 << j) < source.size(); ++j) {
int val = 0;
for (int i = 0; i < source.size(); ++i) {
if (i & (1 << j)) {
val ^= source[i];
}
}
res.push_back(val);
}
int end = 0;
for (int i = 0; i < source.size(); ++i) {
end ^= source[i];
}
res.push_back(end);
return res;
}
vector<int> retrieve(vector<int> data) {
bool smol = (data.size() == 70);
int end = 0;
vector<int> source;
for (int i = 0; i < data.size() - (smol ? 7 : 9); ++i) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |