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"
using namespace std;
typedef long long ll;
void create_circuit(int M, vector<int> A) {
A.push_back(0);
vector<int> C(M+1);
vector<int> X, Y;
int prev = 0;
for(auto &e : A) {
if (!C[prev]) {
C[prev] = e;
prev = e;
}
else {
X.push_back(C[prev]);
Y.push_back(e);
C[prev] = -X.size();
}
}
answer(C, X, Y);
return;
}
# | 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... |