# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
139451 | reda | 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 ;
#define pb push_back
#define ll long long
#define ld long double
#define mp make_pair
#define MOD 1000000007
#define endl '\n'
#pragma GCC optimize ("O3")
#define MAXN 105
void create_circuit(int M, vector<int> A) {
int N = A.size();
vector<int> C(M + 1);
A.pb(0);
for (int i=0;i<N;++i)
C[A[i]] = A[i+1];
C[0]=A[0];
vector<int> X,Y;
answer(C,X,Y);
}