# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
418389 | jacquesamsel | Mechanical Doll (IOI18_doll) | C++14 | 0 ms | 0 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 <bits/stdc++.h>
using namespace std;
void answer(std::vector<int> C, std::vector<int> X, std::vector<int> Y) {
for (auto y : C) {
cout << y << " ";
}
cout << endl;
}
void create_circuit(int M, vector<int> A) {
A.push_back(0);
vector<int> moves;
moves.assign(M+1, 0);
int last = 0;
int m = 0;
for (int i = 0; i < A.size(); i++) {
// cout << last << " to " << A[i] << endl;
moves[last] = A[i];
m = max(m, A[i]);
last = A[i];
}
// cout << last << endl;
answer(moves, {}, {});
}