Submission #1020883

#TimeUsernameProblemLanguageResultExecution timeMemory
1020883ZicrusMechanical Doll (IOI18_doll)C++17
6 / 100
39 ms8500 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; } else { X.push_back(C[prev]); Y.push_back(e); C[prev] = -X.size(); } prev = e; } 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...