Submission #463635

#TimeUsernameProblemLanguageResultExecution timeMemory
463635tomsydMechanical Doll (IOI18_doll)C++17
0 / 100
0 ms204 KiB
#include "doll.h" using namespace std; void create_circuit(int M, vector<int> A) { int N = A.size(); vector<int> C(M + 1); C[0] = 1; for (int i = 1; i <= M; ++i) { C[i] = (i+1)%(M+1); } vector<int> X,Y; /* for (int k = 0; k < N; ++k) { X[k] = Y[k] = A[k]; }*/ answer(C, X, Y); }

Compilation message (stderr)

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:5:7: warning: unused variable 'N' [-Wunused-variable]
    5 |   int N = A.size();
      |       ^
#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...