답안 #418390

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
418390 2021-06-05T10:36:24 Z jacquesamsel 자동 인형 (IOI18_doll) C++14
2 / 100
25 ms 3132 KB
#include <bits/stdc++.h>
using namespace std;

void answer(std::vector<int> C, std::vector<int> X, std::vector<int> Y);

void create_circuit(int M, vector<int> A) {
    A.push_back(0);
    vector<int> moves;
    moves.assign(M+1, 0);
    int last = 0;
    int m = 0;
    for (int i = 0; i < A.size(); i++) {
        // cout << last << " to " << A[i] << endl;
        moves[last] = A[i];
        m = max(m, A[i]);
        last = A[i];
    }
    // cout << last << endl;
    answer(moves, {}, {});
}

Compilation message

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:12:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   12 |     for (int i = 0; i < A.size(); i++) {
      |                     ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 20 ms 2348 KB Output is correct
3 Correct 25 ms 2120 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 10 ms 1356 KB Output is correct
6 Correct 24 ms 3132 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 20 ms 2348 KB Output is correct
3 Correct 25 ms 2120 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 10 ms 1356 KB Output is correct
6 Correct 24 ms 3132 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Incorrect 24 ms 2972 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 20 ms 2348 KB Output is correct
3 Correct 25 ms 2120 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 10 ms 1356 KB Output is correct
6 Correct 24 ms 3132 KB Output is correct
7 Correct 0 ms 204 KB Output is correct
8 Incorrect 24 ms 2972 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 204 KB wrong motion
2 Halted 0 ms 0 KB -