Submission #162768

#TimeUsernameProblemLanguageResultExecution timeMemory
162768MinnakhmetovMechanical Doll (IOI18_doll)C++14
2 / 100
25 ms2252 KiB
#include "doll.h" #include<bits/stdc++.h> using namespace std; #define all(aaa) aaa.begin(), aaa.end() void create_circuit(int m, vector<int> a) { int n = a.size(); vector<int> tot(m + 1), tosx, tosy; tot[0] = a[0]; tot[a[n - 1]] = 0; for (int i = 0; i < n - 1; i++) { tot[a[i]] = a[i + 1]; } answer(tot, tosx, tosy); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...