답안 #361919

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
361919 2021-02-01T06:58:38 Z leinad2 자동 인형 (IOI18_doll) C++17
2 / 100
36 ms 2224 KB
#include "doll.h"
#include<bits/stdc++.h>
using namespace std;
int i, j, k;
void create_circuit(int M, vector<int>A)
{
    vector<int>C(M+1), X, Y;
    C[0]=A[0];
    A.push_back(0);
    for(i=0;i+1<A.size();i++)
    {
        C[A[i]]=A[i+1];
    }
    answer(C, X, Y);
    return;
}

Compilation message

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