답안 #1018301

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1018301 2024-07-09T18:31:07 Z vjudge1 자동 인형 (IOI18_doll) C++17
2 / 100
14 ms 4280 KB
#include "doll.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vll = vector <ll>;
using vi = vector <int>;

void create_circuit (int m, vi A) {
    vll ve(A.begin(), A.end());
    ve.insert(ve.begin(), 0);
    ll n = ve.size();
    vll to(m+1, 0); // all initially feed to origin
    for (ll i = 1; i < n; i++) {
        to[ve[i-1]] = ve[i];
    }
    answer(vi(to.begin(), to.end()), {}, {});
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 11 ms 3456 KB Output is correct
3 Correct 12 ms 2904 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 5 ms 1884 KB Output is correct
6 Correct 14 ms 4172 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 11 ms 3456 KB Output is correct
3 Correct 12 ms 2904 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 5 ms 1884 KB Output is correct
6 Correct 14 ms 4172 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 14 ms 4280 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 344 KB Output is correct
2 Correct 11 ms 3456 KB Output is correct
3 Correct 12 ms 2904 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 5 ms 1884 KB Output is correct
6 Correct 14 ms 4172 KB Output is correct
7 Correct 0 ms 348 KB Output is correct
8 Incorrect 14 ms 4280 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 -