답안 #862700

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
862700 2023-10-18T22:02:10 Z IBory 자동 인형 (IOI18_doll) C++17
2 / 100
15 ms 3164 KB
#include "doll.h"
#include <bits/stdc++.h>
using namespace std;

void create_circuit(int M, vector<int> A) {
	vector<int> C, X, Y;
	C.resize(M + 1);
	int pv = 0;
	for (int i = 0; i < A.size(); ++i) {
		C[pv] = A[i];
		pv = A[i];
	}
	answer(C, X, Y);
}

Compilation message

doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:9:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |  for (int i = 0; i < A.size(); ++i) {
      |                  ~~^~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 13 ms 2396 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 7 ms 1372 KB Output is correct
6 Correct 15 ms 2908 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 13 ms 2396 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 7 ms 1372 KB Output is correct
6 Correct 15 ms 2908 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Incorrect 15 ms 3164 KB wrong motion
9 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 13 ms 2396 KB Output is correct
3 Correct 10 ms 2140 KB Output is correct
4 Correct 0 ms 344 KB Output is correct
5 Correct 7 ms 1372 KB Output is correct
6 Correct 15 ms 2908 KB Output is correct
7 Correct 1 ms 344 KB Output is correct
8 Incorrect 15 ms 3164 KB wrong motion
9 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 1 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB wrong motion
2 Halted 0 ms 0 KB -