Submission #130273

#TimeUsernameProblemLanguageResultExecution timeMemory
130273TalantMechanical Doll (IOI18_doll)C++17
0 / 100
46 ms5420 KiB
#include "doll.h" #include <bits/stdc++.h> #define sc second #define fr first #define pb push_back #define mk make_pair using namespace std; const int NN = (1e6 + 5); const int inf = (1e9 + 7); int n; int a[NN]; vector <int> c,x,y; void create_circuit(int M, vector<int> A) { n = A.size(); for (int i = 0; i < n; i ++) a[i + 1] = A[i]; if (M == 1) { c.pb(1); if (n == 1) { c.pb(0); } else { c.pb(-1); x.pb(1); y.pb(-2); for (int i = 2; i < n; i ++) { x.pb(-1 * (i - 1)); y.pb(-1 * (i + 1)); } x.pb(-n); y.pb(0); } 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...