Submission #1048098

#TimeUsernameProblemLanguageResultExecution timeMemory
1048098woodMechanical Doll (IOI18_doll)C++17
0 / 100
1 ms348 KiB
#include "doll.h" #include <bits/stdc++.h> using namespace std; #define pb push_back void create_circuit(int M, std::vector<int> A) { int N = A.size(); vector<int> res(M+1,-1), x, y; int switchcnt = 0; for(int i = 1; i<4; i++){ x.pb(-2*i-1); y.pb(-2*i-2); } vector<int> list = {1,9,5,13,3,11,7,15,2,10,6,14,4,12,8,16}; for(int i = 0; i<16; i++){ if(i&1) y.pb(list[i]); else x.pb(list[i]); } answer(res,x,y); }

Compilation message (stderr)

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