#include "doll.h"
#include <bits/stdc++.h>
using namespace std;
void create_circuit(int M, vector<int> A) {
int N = A.size(), K = 1;
while(K<(N+1)/2) K <<= 1;
vector<int> C(M + 1);
vector<int> X(K<<1), Y(K<<1);
K = 1;
C[0] = 1, fill(C.begin()+1, C.end(), -1);
for(int i=1; i<K; ++i){
X[i-1] = -(i<<1);
Y[i-1] = -(i<<1|1);
}
for(int i=0; i<2*K; ++i){
if(i>=N){
if(i&1) Y[K+i/2-1] = -1;
else X[K+i/2-1] = -1;
}
else if(i&1) Y[K+i/2-1] = K+i;
else X[K+i/2-1] = K+i;
}
Y.back() = 0;
answer(C, X, Y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
wrong serial number |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
204 KB |
wrong serial number |
2 |
Halted |
0 ms |
0 KB |
- |