#include "doll.h"
#include<bits/stdc++.h>
using namespace std;
vector<int> X, Y, C;
int ms(int a, int b) {
X.push_back(a);
Y.push_back(b);
return -Y.size();
}
vector<int> adj[500100];
void create_circuit(int M, std::vector<int> A) {
C.resize(M+1);
int n = A.size();
if(n==1) {
answer({1,0},{},{});
return;
}
if(n==2) {
answer({1,-1},{1},{0});
return;
}
C[0] = 1, C[1] = -1;
ms(1,-2);
for(int i = 2; i < n; i++) {
ms(-i+1,(i==n-1?0:-i-1));
}
answer(C, X, Y);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
11988 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
11988 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
11988 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
11988 KB |
wrong motion |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
12048 KB |
Output is correct |
2 |
Incorrect |
35 ms |
16864 KB |
over 20000000 inversions |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
6 ms |
12048 KB |
Output is correct |
2 |
Incorrect |
35 ms |
16864 KB |
over 20000000 inversions |
3 |
Halted |
0 ms |
0 KB |
- |