Submission #585518

#TimeUsernameProblemLanguageResultExecution timeMemory
585518LIFMechanical Doll (IOI18_doll)C++14
2 / 100
21 ms3000 KiB
#include "doll.h" #include<bits/stdc++.h> void create_circuit(int M, std::vector<int> A) { int N = A.size(); std::vector<int> x,y; std::vector<int> c(M+1); int n = N; std::vector<int> node[1005]; c[0] = A[0]; for(int i=0; i<=n-2; i++) { int xx = A[i]; c[xx] = A[i+1]; } c[A[n-1]] = 0; answer(c,x,y); }
#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...