# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
94979 | someone_aa | Mechanical Doll (IOI18_doll) | C++17 | 28 ms | 2220 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 "doll.h"
void create_circuit(int M, std::vector<int> A) {
int N = A.size();
std::vector<int> C(M + 1, 0);
C[0] = A[0];
for(int i=0;i<A.size()-1;i++) {
C[A[i]] = A[i+1];
}
C[A.back()] = 0;
std::vector<int> X, Y;
/*for (int k = 0; k < N; ++k) {
X[k] = Y[k] = A[k];
}*/
answer(C, X, Y);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |