Submission #975392

#TimeUsernameProblemLanguageResultExecution timeMemory
975392LucaIlieMechanical Doll (IOI18_doll)C++17
0 / 100
28 ms5316 KiB
#include "doll.h" #include <bits/stdc++.h> using namespace std; void create_circuit( int m, vector<int> a ) { int n = a.size(); vector<int> c( m + 1 ), x( n - 1 ), y( n - 1 ); c[0] = 1; if ( n == 1 ) { c[0] = 1; answer( c, x, y ); return; } c[1] = -1; x[0] = 1; for ( int i = 1; i < n - 1; i++ ) x[i] = -i; for ( int i = 0; i < n - 2; i++ ) y[i] = -(i + 2); y[n - 1] = -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...