#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 |
1 |
Incorrect |
1 ms |
344 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Incorrect |
28 ms |
5316 KB |
over 20000000 inversions |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Incorrect |
28 ms |
5316 KB |
over 20000000 inversions |
3 |
Halted |
0 ms |
0 KB |
- |