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>
#include "doll.h"
#define N 200009
#define pii pair <int, int>
#define ff first
#define ss second
#define pb push_back
#define ll long long
using namespace std;
ll n, c[N];
void create_circuit(int m, vector<int>a){
n=a.size();
vector<int>e, b;
ll x=0;
for(int i=0; i<n; i++)
c[x]=a[i], x=a[i];
for(int i=0; i<m; i++)
if(!c[i] and x!=i)
c[x]=i, x=i;
c[x]=0;
for(int i=0; i<=m; i++)
e.pb(c[i]);
answer(e, b, b);
}
# | 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... |