| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1310714 | nataliaa | Data Transfer (IOI19_transfer) | C++20 | 0 ms | 0 KiB |
#include "transfer.h"
#include<bits/stdc++.h>
using namespace std;
vector<int> get_attachment(vector<int> v) {
vector<int> v1;
int n = v.size();
for(int i = 0; i < n; i++) v1.push_back(v[i]);
for(int i = 0; i < n; i++) v1.push_back(v[i]);
for(int i = 0; i < n; i++) v1.push_back(v[i]);
return v1;
}
vector<int> retrieve(vector<int> v) {
int n = v.size()/3;
string s1, s2, s3;
vector<int> v1, v2, v3;
for(int i = 0; i < n; i++) {
v1.push_back(v[i]);
v2.push_back(v[i+n]);
v3.push_back(v[i+2*n]);
}
if(v1==v2) return v1;
if(v1==v3) return v1;
iv(v2==v3) return v2;
}
