답안 #756105

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
756105 2023-06-11T06:09:18 Z drdilyor 자동 인형 (IOI18_doll) C++17
2 / 100
19 ms 3016 KB
#include<bits/stdc++.h>
#include "doll.h"
using namespace std;
using ll = long long;

void create_circuit(int m, std::vector<int> arr) {
    vector<int> c(m+1);
    int n = arr.size();
    int p = 0;
    for (int i : arr) {
        c[p] = i;
        p = i;
    }
    c[arr.back()] = 0;
    answer(c, {}, {});
}

Compilation message

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:8:9: warning: unused variable 'n' [-Wunused-variable]
    8 |     int n = arr.size();
      |         ^
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 16 ms 2388 KB Output is correct
3 Correct 13 ms 1960 KB Output is correct
4 Correct 1 ms 296 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 19 ms 2908 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 16 ms 2388 KB Output is correct
3 Correct 13 ms 1960 KB Output is correct
4 Correct 1 ms 296 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 19 ms 2908 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 19 ms 3016 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 16 ms 2388 KB Output is correct
3 Correct 13 ms 1960 KB Output is correct
4 Correct 1 ms 296 KB Output is correct
5 Correct 8 ms 1364 KB Output is correct
6 Correct 19 ms 2908 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 19 ms 3016 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 300 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 296 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 296 KB wrong motion
2 Halted 0 ms 0 KB -