Submission #483581

#TimeUsernameProblemLanguageResultExecution timeMemory
483581ponytailMechanical Doll (IOI18_doll)C++17
2 / 100
18 ms2988 KiB
#include "doll.h" #include <vector> #include <cstdio> #include <cstdlib> #include <bits/stdc++.h> using namespace std; void create_circuit(int M, std::vector<int> A) { vector<int> C(M+1); vector<int> empty; int N = A.size(); C[0] = A[0]; for(int i=0; i<N-1; i++) { C[A[i]] = A[i+1]; } C[A[N-1]] = 0; answer(C, empty, empty); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...