# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
739255 | onebit1024 | Data Transfer (IOI19_transfer) | C++17 | 817 ms | 4884 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;
#define pb push_back
std::vector<int> get_attachment(std::vector<int> source) {
vector<int>ret = source;
for(auto x : source)ret.push_back(x);
return ret;
}
std::vector<int> retrieve(std::vector<int> data) {
int n = data.size()/3;
vector<vector<int>>dp;
for(int i = 0;i<data.size();i+=n){
vector<int>p;
for(int j = i;j<i+n;++j)p.pb(data[j]);
dp.pb(p);
}
if(dp[0]==dp[1])return dp[0];
if(dp[0]==dp[2])return dp[0];
if(dp[1]==dp[2])return dp[1];
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |