답안 #1073810

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1073810 2024-08-24T22:32:39 Z Gabriel 자동 인형 (IOI18_doll) C++17
2 / 100
78 ms 7544 KB
#include "doll.h"
#include "bits/stdc++.h"
using namespace std;
void create_circuit(int M, vector<int> A){
  int n = A.size();
  map<int, int> Mapa;
  bool _1 = 1, _2 = 1;
  for(int i = 0; i < n; i++){
    Mapa[A[i]]++;
    if(Mapa[A[i]] > 1) _1 = 0;
    if(Mapa[A[i]] > 2) _2 = 0; 
  }
  vector<int> c(M + 1, 0), x, y;
  if(_1){
    for(int i = 0; i < n; i++){
      if(i == 0){
        c[0] = A[i];
      } else {
        c[A[i - 1]] = A[i];
      }
    }
  } else if(_2){

  }
  answer(c, x, y); 
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 36 ms 5420 KB Output is correct
3 Correct 36 ms 5212 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 6 ms 1372 KB Output is correct
6 Correct 58 ms 7544 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 36 ms 5420 KB Output is correct
3 Correct 36 ms 5212 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 6 ms 1372 KB Output is correct
6 Correct 58 ms 7544 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Incorrect 78 ms 6224 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 36 ms 5420 KB Output is correct
3 Correct 36 ms 5212 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Correct 6 ms 1372 KB Output is correct
6 Correct 58 ms 7544 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Incorrect 78 ms 6224 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 344 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -