답안 #841159

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
841159 2023-09-01T09:58:29 Z heavylightdecomp Choreography (IOI23_choreography) C++17
0 / 100
71 ms 8856 KB
#include<bits/stdc++.h>
using namespace std;
const int maxn = 1e5+5;
int orz[maxn], delt[maxn], N, ch;
void init(int n, vector<int> p) {
    N = n;
    for(int i = 0; i < N; i++) {
        orz[p[i]] = i;
    }
}
void move_right(int K) {
    ch += K;
}
void move_left(int K) {
    ch += -K;
}
void swap_places() {

}
void move_around() {

}
int get_position(int D) {
    int pos = orz[D] + ch;
    return pos % N;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 71 ms 8856 KB 3rd lines differ - on the 1st token, expected: '63867', found: '-36133'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 340 KB 5th lines differ - on the 1st token, expected: '411', found: '-90'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 70 ms 8220 KB 16th lines differ - on the 1st token, expected: '54117', found: '49341'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 70 ms 8220 KB 16th lines differ - on the 1st token, expected: '54117', found: '49341'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 71 ms 8856 KB 3rd lines differ - on the 1st token, expected: '63867', found: '-36133'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 71 ms 8856 KB 3rd lines differ - on the 1st token, expected: '63867', found: '-36133'
2 Halted 0 ms 0 KB -