답안 #624283

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
624283 2022-08-07T16:24:28 Z Dan4Life 자동 인형 (IOI18_doll) C++17
2 / 100
19 ms 2612 KB
#include "doll.h"
#include <bits/stdc++.h>
using namespace std;

void create_circuit(int M, vector<int> A) {
  int n = A.size();
  vector<int> C(M+1);
  C[0] = A[0];
  for(int i = 0; i < n-1; i++) C[A[i]]=A[i+1];
  C[A[n-1]]=0;
  vector<int> X,Y; answer(C,X,Y); return;
  for (int k = 0; k < n; ++k) {
    X[k] = Y[k] = A[k];
  }
  answer(C, X, Y);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 15 ms 2388 KB Output is correct
3 Correct 12 ms 2020 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 7 ms 1364 KB Output is correct
6 Correct 19 ms 2612 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 15 ms 2388 KB Output is correct
3 Correct 12 ms 2020 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 7 ms 1364 KB Output is correct
6 Correct 19 ms 2612 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 19 ms 2436 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 15 ms 2388 KB Output is correct
3 Correct 12 ms 2020 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 7 ms 1364 KB Output is correct
6 Correct 19 ms 2612 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 19 ms 2436 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB wrong motion
2 Halted 0 ms 0 KB -