Submission #1020864

#TimeUsernameProblemLanguageResultExecution timeMemory
1020864ZicrusMechanical Doll (IOI18_doll)C++17
2 / 100
34 ms6520 KiB
#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 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...