Submission #414513

#TimeUsernameProblemLanguageResultExecution timeMemory
414513mosiashvililukaMechanical Doll (IOI18_doll)C++14
2 / 100
29 ms2756 KiB
#include "doll.h" #include<bits/stdc++.h> using namespace std; int a,b,c,d,e,i,j,ii,jj,zx,xc,N,M; vector <int> A,C,X,Y; void answer(std::vector<int> C, std::vector<int> X, std::vector<int> Y); void create_circuit(int M, vector<int> AA) { N=AA.size(); for(i=0; i<N; i++){ A.push_back(AA[i]); } C.resize(M+1); C[0]=A[0]; for(i=0; i<N-1; i++){ C[A[i]]=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...