Submission #244046

#TimeUsernameProblemLanguageResultExecution timeMemory
244046crossing0verMechanical Doll (IOI18_doll)C++17
2 / 100
32 ms2228 KiB
#include<bits/stdc++.h> #define vi vector<int> #define fi first #define se second //#define local #ifndef local #include "doll.h" #endif using namespace std; void create_circuit(int M, vi A) { int N = A.size(); vi C(M + 1); int num = 0; C[0] = A[0]; for (int i = 0; i < N; ++i) { if (i != N-1) C[A[i]] = A[i+1]; else C[A[i]] = 0; //C[A[i]] = ( A[i+1] : 0); } vector<int> X, Y; answer(C, X, Y); }

Compilation message (stderr)

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