Submission #679260

#TimeUsernameProblemLanguageResultExecution timeMemory
679260Magikarp4000Data Transfer (IOI19_transfer)C++17
0 / 100
3 ms1020 KiB
#include <bits/stdc++.h> using namespace std; #define OPTM ios_base::sync_with_stdio(0); cin.tie(0); #define INF int(1e9+7) #define ln '\n' #define ll long long #define ull unsigned long long #define ui unsigned int #define us unsigned short #define FOR(i,s,n) for (int i = s; i < n; i++) #define FORR(i,n,s) for (int i = n; i > s; i--) #define FORX(u, arr) for (auto u : arr) #define PB push_back #define in(v,x) (v.find(x) != v.end()) #define F first #define S second #define PII pair<int, int> #define PLL pair<ll, ll> #define UM unordered_map #define US unordered_set #define PQ priority_queue #define ALL(v) v.begin(), v.end() const ll LLINF = 1e18+1; vector<int> get_attachment(vector<int> s) { int n = s.size(); FOR(j,0,2) { FOR(i,0,n) s.PB(s[i]); } return s; } vector<int> retrieve(vector<int> d) { int n = d.size()/3; vector<int> a[3]; FOR(i,0,3) { FOR(j,0,n) { a[i].PB(j); } } if (a[0] == a[1]) return a[0]; else if (a[0] == a[2]) return a[0]; else return a[1]; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...