#include "choreography.h"
#include <bits/stdc++.h>
using namespace std;
int pos[100010];
int shift;
int n;
void init(int N, std::vector<int> P) {
n=N;
for(int i=0;i<N;i++)pos[P[i]] = i;
return;
}
void move_right(int K) {
shift+=K;
return;
}
void move_left(int K) {
shift-=K;
return;
}
void swap_places() {
return;
}
void move_around() {
return;
}
int get_position(int D){
return (pos[D]+shift)%n;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
57 ms |
8900 KB |
3rd lines differ - on the 1st token, expected: '63867', found: '-36133' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
5th lines differ - on the 1st token, expected: '411', found: '-90' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
79 ms |
8144 KB |
16th lines differ - on the 1st token, expected: '54117', found: '49341' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
79 ms |
8144 KB |
16th lines differ - on the 1st token, expected: '54117', found: '49341' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
57 ms |
8900 KB |
3rd lines differ - on the 1st token, expected: '63867', found: '-36133' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
57 ms |
8900 KB |
3rd lines differ - on the 1st token, expected: '63867', found: '-36133' |
2 |
Halted |
0 ms |
0 KB |
- |