# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
213376 | _Ice_Tea_ | Data Transfer (IOI19_transfer) | C++14 | 524 ms | 5228 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>
#include "transfer.h"
using namespace std;
std::vector<int> get_attachment(std::vector<int> source) {
int i,j;
int N = source.size();
vector<int> attach;
for( i=0; i<N; i++)
attach.push_back( source[i]);
for( i=0; i<N; i++)
attach.push_back( source[i]);
return attach;
}
std::vector<int> retrieve(std::vector<int> data) {
int i,j;
int N = data.size() / 3;
vector<int> ans;
for( i=0; i<N; i++)
{
int a = data[i];
int b = data[i+N];
int c = data[i+2*N];
if( a == b )
ans.push_back(a);
else if( a == c)
ans.push_back(c);
else
ans.push_back(b);
}
return ans;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |