This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |