Submission #1037121

#TimeUsernameProblemLanguageResultExecution timeMemory
1037121HappyCapybaraMechanical Doll (IOI18_doll)C++17
0 / 100
23 ms5540 KiB
#include "doll.h" #include<bits/stdc++.h> using namespace std; void create_circuit(int M, vector<int> A) { int N = A.size(); if (N == 1) answer({1, 0}, {}, {}); vector<int> C = {1, -1}; vector<int> X, Y; for (int i=-1; i>=-N+1; i--){ if (i == -1) X.push_back(1); else X.push_back(i+1); if (i == -N+1) Y.push_back(0); else Y.push_back(i-1); } 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...