답안 #369864

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
369864 2021-02-22T16:27:13 Z flappybird 자동 인형 (IOI18_doll) C++14
2 / 100
48 ms 5168 KB
#include "doll.h"
#include <bits/stdc++.h>
void create_circuit(int M, std::vector<int> A) {
	int N = A.size();
	std::vector<int> C(M + 1);
	int i;
	C[0] = A[0];
	for (i = 0; i < A.size() - 1; i++) {
		C[A[i]] = A[i + 1];
	}
	C[A[A.size() - 1]] = 0;
	std::vector<int> X(N), Y(N);
	answer(C, X, Y);
}

Compilation message

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