답안 #923222

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
923222 2024-02-07T01:01:12 Z AdamGS Choreography (IOI23_choreography) C++17
7 / 100
70 ms 9288 KB
#include "choreography.h"
#include<bits/stdc++.h>
using namespace std;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
const int LIM=1e5+7;
int P[LIM], Q[LIM], n, a;
void init(int N, vector<int>_P) {
  n=N;
  rep(i, n) P[i]=_P[i];
  rep(i, n) Q[P[i]]=i;
}
void move_right(int k) {
  a=(a+k)%n;
}
void move_left(int k) {
  move_right((n-k)%n);
}
void swap_places() {
}
void move_around() {
}
int get_position(int d) {
  return (Q[d]+a)%n;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 62 ms 9176 KB Output is correct
2 Correct 63 ms 9160 KB Output is correct
3 Correct 63 ms 9152 KB Output is correct
4 Correct 70 ms 9288 KB Output is correct
5 Correct 41 ms 6580 KB Output is correct
6 Correct 48 ms 6608 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB 5th lines differ - on the 1st token, expected: '411', found: '410'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 57 ms 8588 KB 16th lines differ - on the 1st token, expected: '54117', found: '49341'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 57 ms 8588 KB 16th lines differ - on the 1st token, expected: '54117', found: '49341'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 62 ms 9176 KB Output is correct
2 Correct 63 ms 9160 KB Output is correct
3 Correct 63 ms 9152 KB Output is correct
4 Correct 70 ms 9288 KB Output is correct
5 Correct 41 ms 6580 KB Output is correct
6 Correct 48 ms 6608 KB Output is correct
7 Incorrect 57 ms 8588 KB 16th lines differ - on the 1st token, expected: '54117', found: '49341'
8 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 62 ms 9176 KB Output is correct
2 Correct 63 ms 9160 KB Output is correct
3 Correct 63 ms 9152 KB Output is correct
4 Correct 70 ms 9288 KB Output is correct
5 Correct 41 ms 6580 KB Output is correct
6 Correct 48 ms 6608 KB Output is correct
7 Incorrect 1 ms 348 KB 5th lines differ - on the 1st token, expected: '411', found: '410'
8 Halted 0 ms 0 KB -