# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
623464 | lcj | Data Transfer (IOI19_transfer) | C++17 | 274 ms | 2588 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 <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef pair<int, int> pii;
#include "transfer.h"
std::vector<int> get_attachment(vector<int> source) {
int n = source.size();
int k;
if (n == 63) {
k = 6;
}
else {
k = 8;
}
vector<int> at(k+1, 0);
for (int i = 1; i <= n; i++)
{
for (int j = 0; j < k; j++)
{
if (i & (1 << j)) {
at[j] ^= source[i-1];
}
}
}
for (int i = 0; i < k; i++)
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |