# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
307868 | joylintp | Data Transfer (IOI19_transfer) | C++17 | 385 ms | 2756 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "transfer.h"
using namespace std;
vector<int> get_attachment(vector<int> source)
{
int N = source.size(), lst = 0;
vector<int> ret;
for (int i = 0; i < __lg(N + 1); i++)
{
int t = 0;
for (int j = 0; j < N; j++)
if ((j + 1) & (1 << i))
t ^= source[j];
ret.push_back(t);
lst ^= t;
}
ret.push_back(lst);
return ret;
}
vector<int> retrieve(vector<int> data)
{
int N = (data.size() == 70 ? 63 : 255), K = data.size() - N;
vector<int> ret;
for (int i = 0; i < N; i++)
ret.push_back(data[i]);
int arr[8] = {};
for (int i = 0; i < __lg(N + 1); i++)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |