Submission #1073810

#TimeUsernameProblemLanguageResultExecution timeMemory
1073810GabrielMechanical Doll (IOI18_doll)C++17
2 / 100
78 ms7544 KiB
#include "doll.h" #include "bits/stdc++.h" using namespace std; void create_circuit(int M, vector<int> A){ int n = A.size(); map<int, int> Mapa; bool _1 = 1, _2 = 1; for(int i = 0; i < n; i++){ Mapa[A[i]]++; if(Mapa[A[i]] > 1) _1 = 0; if(Mapa[A[i]] > 2) _2 = 0; } vector<int> c(M + 1, 0), x, y; if(_1){ for(int i = 0; i < n; i++){ if(i == 0){ c[0] = A[i]; } else { c[A[i - 1]] = A[i]; } } } else if(_2){ } 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...