# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
244046 | crossing0ver | Mechanical Doll (IOI18_doll) | C++17 | 32 ms | 2228 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>
#define vi vector<int>
#define fi first
#define se second
//#define local
#ifndef local
#include "doll.h"
#endif
using namespace std;
void create_circuit(int M, vi A) {
int N = A.size();
vi C(M + 1);
int num = 0;
C[0] = A[0];
for (int i = 0; i < N; ++i) {
if (i != N-1) C[A[i]] = A[i+1];
else C[A[i]] = 0;
//C[A[i]] = ( A[i+1] : 0);
}
vector<int> X, Y;
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... |